MATLAB: In GUI , how to make the handles be used in the function

guihandles

use global or sth. ? Is there any way?
when i create my function , it occurs error: Attempt to reference field of non-structure array.

Best Answer

ok, i found one way ,just set the handles as a parameter and pass it to my function.
function myfun(handles,params)
Related Question