Pausing in Matlab Mobile

11 visualizaciones (últimos 30 días)
David Koenig
David Koenig el 29 de Jul. de 2014
Comentada: Joseph Breeden el 9 de Jun. de 2021
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?
Thanks,
Dave

Respuestas (2)

Image Analyst
Image Analyst el 29 de Jul. de 2014
Does it not work the same way? In other words, have you tried
uiwait(helpdlg('Click OK to Continue'));
or
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')
return;
end
and it doesn't stop and ask you anything?

Jerry
Jerry el 30 de Jul. de 2014
MATLAB Mobile only supports the pause(n) syntax of pause where n is the number of seconds you would like to pause.
  2 comentarios
Katerina Chrysostomou
Katerina Chrysostomou el 3 de Abr. de 2019
It is only letting me pause for maximum 2 seconds when using my iphone! Does anyone know how to increase the time?
Joseph Breeden
Joseph Breeden el 9 de Jun. de 2021
Try
for i=1:duration, pause(1); end
It's silly that one should need this, but I just confirmed that it works.

Iniciar sesión para comentar.

Comunidades de usuarios

Más respuestas en  Distance Learning Community

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by