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

 채택된 답변

Vishal Rane
Vishal Rane 2013년 3월 15일
편집: Vishal Rane 2013년 3월 15일
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

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

질문:

2013년 3월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by