MATLAB: Is it possible to call a push button callback in GUI_1 from a push button in GUI_2
gui
Is it possible to call a push button callback in GUI_1 from a push button in GUI_2?
Best Answer
Yes. The hard part is getting its handle, as there are different "handles" structures for each GUI. If it has a unique name, you can use findall('Tag', 'TheAppropriateTag') to get its handle.
But easier than all of this is to have the callback in GUI_1 call a function which has its own .m file, and then when you want the push button in GUI_2 to invoke the action, have GUI_2 call that same routine.
Best Answer