user interface - MATLAB exiting loop in function when using GUI -


I have a function that runs when clicking a button and to plotting functions, to any other function After the program written by a series of loops, which is an animation, it can not be stopped until it can be pressed by pressing Ctrl + C, which will cause the entire .exe to fail and open it again is needed.

I want to create a reset button, so loop from running, but how to pass a new variable from between the existing functions, which is two levels above the stack?

Thanks

Edit @ 22:13 27 / 3/2011 (UK)

What I'm trying to do: < Pre> function push_calculate_Callback (H object, event data, handle) (list of parameters that read in GUI) list (function, list of parameters required to pass the phaymon)

This is the first part of the code that is directly linked to the GUI, Feyman looks like this: Function Fan (list of parameters) (List of calculations .. Fitting (List of Parameters for Plotting)

In which there is a floating where the animation comes out, inside the flipping:

  function = parameter (List of parameters) = 1: (nd) (plot animation) and   

Here is a loop where I press the reset button when I want to stop. Coz is going through an animation (looping) then pressing Ctrl + C, this will give an error and the exe file will crash and it will have to be re-opened. Then what do I want to do when it is pressed on the reset button when it is enabled to stop it.

If I press the reset button, then I am using the new value, this current loop and break loop ... It looks like I change the parameter after updating the parameter

Thank you

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -