Pausing in Matlab Mobile

조회 수: 8 (최근 30일)
David Koenig
David Koenig . 2014년 7월 29일
댓글: Joseph Breeden . 2021년 6월 9일
I am trying to convert my scripts so that I can run them on my iPad. Most of my scripts generate many figures and have pauses after each so the user can view the graph before going on. Is there any way to pause in Matlab Mobile?

답변 (2개)

Image Analyst
Image Analyst 2014년 7월 29일
Does it not work the same way? In other words, have you tried
uiwait(helpdlg('Click OK to Continue'));
promptMessage = sprintf('Do you want to Continue processing,\nor Cancel to abort processing?');
titleBarCaption = 'Continue?';
button = questdlg(promptMessage, titleBarCaption, 'Continue', 'Cancel', 'Continue');
if strcmpi(button, 'Cancel')
and it doesn't stop and ask you anything?

Jerry 2014년 7월 30일
MATLAB Mobile only supports the pause(n) syntax of pause where n is the number of seconds you would like to pause.
  댓글 수: 2
Joseph Breeden
Joseph Breeden 2021년 6월 9일
for i=1:duration, pause(1); end
It's silly that one should need this, but I just confirmed that it works.

댓글을 달려면 로그인하십시오.


더 많은 답변 보기:  원격 교육 커뮤니티


Help CenterFile Exchange에서 MATLAB Mobile에 대해 자세히 알아보기


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by