in GUI , how to make the handles be used in my function?

2 次查看(过去 30 天)
use global or sth. ? Is there any way?
when i create my function , it occurs error: Attempt to reference field of non-structure array.

采纳的回答

Roger
Roger 2015-4-11
编辑:Roger 2015-4-11
ok, i found one way ,just set the handles as a parameter and pass it to my function.
function myfun(handles,params)

更多回答(1 个)

Stephen23
Stephen23 2015-4-11
Have a look in the documentation:
The best practice is to pass arguments to functions... you should try this!

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by