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

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

 Risposta accettata

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

1 Commento

Thank you! Rane
It works fine, but have you got anyother methods without using Java?
keming!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Interactive Control and Callbacks in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by