Uiwait does not work app designer
Mostrar comentarios más antiguos
I have a plot that is drawn by points in a while loop and I want to make a pause button. When I did it using the for loop uiwait worked, but in the while loop it doesn't. What is the problem?
2 comentarios
Walter Roberson
el 24 de Feb. de 2024
Please show the code.
gravy
el 24 de Feb. de 2024
Respuestas (1)
Walter Roberson
el 24 de Feb. de 2024
if app.VButton.Value == 1 | app.GButton.Value == 1
break
end
You are not testing the state of the pause button. You should have something like
while app.PauseButton.Value
pause(0.00000000001);
drawnow();
end
In two places.
1 comentario
gravy
el 25 de Feb. de 2024
Categorías
Más información sobre App Building en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!