Is it possible to run MATLAB GUI automatically? I need to run GUI automatically ( without pushing any buttons). Anyone can help me?

4 次查看(过去 30 天)
Thanks for advance.

回答(1 个)

Iain
Iain 2014-2-26
Items on GUI's that run code do so via simple, straightforward, function calls called "callbacks". You may call those functions independently.
The arguments to those functions normally includes a list/structure of all of the handles to items on the GUI, and some event data (e.g. what key you pressed), you may need to supply those to the function as an argument.
Using the handles of the items on the GUI, you can change what the GUI says and does using "set"
eg.
set( handles.checkbox45,'value',0) % This would unchecks whatever checkbox "handles.checkbox45" refers to.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by