当前位置:网站首页>吴恩达机器学习编程作业无法暂停pause问题解决
吴恩达机器学习编程作业无法暂停pause问题解决
2022-07-25 17:18:00 【totobey】
吴恩达机器学习的编程作业需要暂停,虽然原始代码中有 pause ,但是发现实际在octave(5.1.0)运行时,代码无法暂停。
编程作业代码:
fprintf('Program paused. Press enter to continue.\n');
pause;经过搜索,知乎有同志提出了解决方案
具体链接见:https://www.zhihu.com/question/345595943/answer/825541870
具体做法:
新建一个文件,保存为.m格式,将下段代码写入:
function pause
while true
str = input('','s');
switch str
case '' % (return key)
break;
otherwise
end
end
end然后将该文件保存到你的作业目录下即可:

边栏推荐
- 「数字安全」警惕 NFT的七大骗局
- Roson的Qt之旅#100 QML四种标准对话框(颜色、字体、文件、提升)
- 霸榜COCO!DINO: 让目标检测拥抱Transformer
- 第三章、数据类型和变量
- Homepage portal classification query
- win10自带的框选截图快捷键
- 【南京航空航天大学】考研初试复试资料分享
- With 8 years of product experience, I have summarized these practical experience of continuous and efficient research and development
- 对灰度图像的三维函数显示
- What is metauniverse gamefi chain game system development? Development and application case and analysis of gamefi metauniverse NFT chain game system
猜你喜欢

After 20 years of agitation, the chip production capacity has started from zero to surpass that of the United States, which is another great achievement made in China
![[mathematical modeling and drawing series tutorial] II. Drawing and optimization of line chart](/img/73/2b6fe0cf69fa013894abce331e1386.png)
[mathematical modeling and drawing series tutorial] II. Drawing and optimization of line chart

动态规划题目记录

Beyond convnext, replknet | look 51 × 51 convolution kernel how to break ten thousand volumes!

HCIP笔记十二天
![[knowledge atlas] practice -- Practice of question answering system based on medical knowledge atlas (Part3): rule-based problem classification](/img/4c/aeebbc9698f8d5c23ed6473c9aca34.png)
[knowledge atlas] practice -- Practice of question answering system based on medical knowledge atlas (Part3): rule-based problem classification
![[target detection] yolov5 Runtong voc2007 dataset (repair version)](/img/b6/b74e93ca5e1986e0265c58f750dce3.png)
[target detection] yolov5 Runtong voc2007 dataset (repair version)

第六章 继承

气数已尽!运营 23 年,昔日“国内第一大电商网站”黄了。。。

为什么 4EVERLAND 是 Web 3.0 的最佳云计算平台
随机推荐
Jenkins' file parameters can be used to upload files
From digitalization to intelligent operation and maintenance: what are the values and challenges?
失意的互联网人拼命叩开Web3大门
Customize MVC project login registration and tree menu
EasyUI modification and DataGrid dialog form control use
Solution for win10 device management not recognizing gtx1080ti display device
Headless mode of new selenium4.3 in egde browser
Crawler framework crawler
stm32F407------SPI
超越 ConvNeXt、RepLKNet | 看 51×51 卷积核如何破万卷!
Why 4everland is the best cloud computing platform for Web 3.0
Does PgSQL have a useful graphical management tool?
What is the monthly salary of 10000 in China? The answer reveals the cruel truth of income
「数字安全」警惕 NFT的七大骗局
Bo Yun container cloud and Devops platform won the trusted cloud "technology best practice Award"
Outlook 教程,如何在 Outlook 中搜索日历项?
Roson的Qt之旅#100 QML四种标准对话框(颜色、字体、文件、提升)
Exception handling mechanism topic 1
我们被一个 kong 的性能 bug 折腾了一个通宵
数据分析与隐私安全成 Web3.0 成败关键因素,企业如何布局?