MATLAB: How to enter an input in an active ‘while’ loop

breakwhile loop

Hi everybody,
I want to 'break' a 'while' loop when an input gets a specific value. Unfortunately, I don't know why when I change the input value, (when 'while' loop is executing), the 'while' loop doesn't recognize! this change?
Please guide me..
Thanks, David

Best Answer

Take a look at my program SpSpj , might not be the best way to do it but it does work
Related Question