0

I'm working on a GUI. I want something likes waitfor for appdata. For example I use setappdata(0,'Value',2) in another window and i want my main gui wait and stop to continue the code until this appdata exists and the value is equal to 2.

How can i do that?

Thanks.

Eghbal
  • 3,892
  • 13
  • 51
  • 112
  • Did you see [this](http://www.mathworks.com/matlabcentral/answers/19011-function-to-wait-for-a-variable-to-change-value) and [this](http://www.mathworks.com/matlabcentral/answers/15460-is-there-a-command-in-matlab-for-waiting)? – Dev-iL Sep 21 '14 at 11:02
  • That's good. Please add it to answers Dev-iL. – Eghbal Sep 21 '14 at 11:08
  • 1
    I'm happy that you found those helpful, however since these are not my solutions and I can't take credit for them... If any of those worked for you, it would be best if posted your own answer describing your solution in detail (including a _working example_ perhaps?). – Dev-iL Sep 21 '14 at 11:25

0 Answers0