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

1 view (last 30 days)
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

Accepted Answer

Vishal Rane
Vishal Rane on 15 Mar 2013
Edited: Vishal Rane on 15 Mar 2013
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

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!