当前位置:网站首页>吴恩达机器学习编程作业无法暂停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然后将该文件保存到你的作业目录下即可:

边栏推荐
- [Nanjing University of Aeronautics and Astronautics] information sharing for the first and second examinations of postgraduate entrance examination
- ACL 2022 | comparative learning based on optimal transmission to achieve interpretable semantic text similarity
- 对灰度图像的三维函数显示
- 我想理财,不懂,有没有保本金的理财产品?
- mindoc制作思维导图
- Mindoc makes mind map
- 文字翻译软件-文字批量翻译转换器免费
- Chapter III data types and variables
- 用秩讨论线性方程组的解/三个平面的位置关系
- 备考过程中,这些“谣言”千万不要信!
猜你喜欢
![[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

jenkins的文件参数,可以用来上传文件

Dynamic planning topic record

Frustrated Internet people desperately knock on the door of Web3
Go语言系列:Go从哪里来,Go将去哪里?

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

霸榜COCO!DINO: 让目标检测拥抱Transformer

What is the monthly salary of 10000 in China? The answer reveals the cruel truth of income

备考过程中,这些“谣言”千万不要信!

Hcip notes 12 days
随机推荐
Roson的Qt之旅#100 QML四种标准对话框(颜色、字体、文件、提升)
Mindoc makes mind map
Is there a principal guaranteed product for financial management?
unity 最好用热更方案卧龙 wolong
简述redis集群的实现原理
一百个用户眼中,就有一百个QQ
2022 latest Beijing Construction welder (construction special operation) simulation question bank and answer analysis
我们被一个 kong 的性能 bug 折腾了一个通宵
Enumeration classes and magic values
What are the free low code development platforms?
无聊发文吐槽工作生活
We were tossed all night by a Kong performance bug
8 年产品经验,我总结了这些持续高效研发实践经验 · 研发篇
Automatic reply of wechat official account development message
Text translation software - text batch translation converter free of charge
Use huggingface to quickly load pre training models and datasets in moment pool cloud
Chapter 4: operators
With 8 years of product experience, I have summarized these practical experience of continuous and efficient research and development
数据分析与隐私安全成 Web3.0 成败关键因素,企业如何布局?
什么是元宇宙Gamefi链游系统开发?Gamefi元宇宙NFT链游系统开发应用案例及分析