I created an animation in app designer with a while loop, I want to be able to pause it and also resume it from the point it was stopped.
I have a set of toggle buttons: pause and resume, I can make it stop when I push pause but I can't make it continue with resume button after the break happens in the loop, I would really appreciate any advice on what I'm doing wrong
while time < 50
g = get(app.PauseButton,'Value');
h = get(app.ResumeButton,'Value');
if isequal(g, 1)
elseif isequal(h, 1)