MATLAB: If statement asking if an addlistener() event has occured
addlistenerguiguideif statement
Is there a way to write an if statement that says something like:
if % addlistener(handles.Edit1, 'String','PostGet',f) occured %do something end
Best Answer
I don't really understand why you would want to do this. The purpose of the listener is to fire when something (some event) happens. Why then do you need anif()? When this something happens, the listener will fire and yourif() will happen automagically.
The edituicontrol's callback function should get it's string and set something else in the popup.
More per comments
In this case you should useaddlistener() to add a listener to the'PostSet' 'string' event broadcasted by each edit box. The documentation foraddlistener() is here:
Best Answer