MATLAB: How to use a GUI to trigger a callback function of button in other GUI

callbackgui

Hello, guys
is any possible to trigger a callback function of button in other GUI?
For example,I write the codes in workspace to triggle the callback function of button in a GUI without pressing the button.
Thanks in advance!
keming

Best Answer

You could use java commands for this.
j = java(findjobj(component_handle)) % fetches the java obj for the component
j.doClick % simulates button press (in case of pushbuttons)
You can get the findjobj utility here