Why does program execution hang when using "pause?"
古いコメントを表示
I am using Windows 10, Matlab R2016a (9.0.0.341360) 64-bit win64 Feb 11, 2016 for the Coursera Machine Learning course. A number of the example programs use the "pause" operator to allow a user to observe some output before continuing.
I have noticed that about 20% of the time, when I press enter at the "pause" section of a program, it will not proceed. I have to press ctrl-c to abort, and then restart the program.
The lower left corner says "Paused: Press any key" but when I press enter, it reports "Busy" in the lower corner and hangs forever.
If I press CTRL-C, I see it is aborting at the PAUSE line.
I usually have to restart MATLAB to get it working again.
Why would "pause" fail this way? Is this a bug or am I doing something wrong?
4 件のコメント
dpb
2016 年 4 月 11 日
Would seem likely to be a system-dependent interaction on a particular installation, unfortunately for you, yours. Probably only help to be had here will be from TMW directly; submit a support request a www.mathworks.com although you might do a search for the symptom and see if there is a published problem report/workaround.
Phillip Remaker
2016 年 4 月 11 日
jgg
2016 年 4 月 11 日
This definitely sounds like a bug in the 2016a distribution. Contact tech support; if several people are experiencing, it can adversely affect a much wider population.
Andreas Goser
2016 年 4 月 12 日
With bugs or anticipated bugs, please get in touch with MathWorks support, really doesn't matter what your license type is.
採用された回答
その他の回答 (3 件)
Phillip Remaker
2016 年 5 月 2 日
1 投票
2 件のコメント
Rajeev Verma
2016 年 9 月 22 日
drawnow does not work as well.
Vladimir
2026 年 3 月 29 日 16:40
crashes MATLAB also in version 2024....
Likhit
2017 年 2 月 17 日
1 投票
Has anyone found a solution/patch to fix this issue? I am having the same problem, right now with my code. Drawnow and Using the Space does not seem to work well.
Phillip Remaker
2017 年 2 月 17 日
編集済み: Walter Roberson
2017 年 2 月 17 日
0 投票
1 件のコメント
gunjan
2018 年 1 月 29 日
Great! thank you so much!
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
