例程:help文档 Create a Simple UI Using GUIDE
% Create the data to plot.
handles.peaks=peaks(35);
handles.membrane=membrane;
[x,y] = meshgrid(-8:.5:8);
r = sqrt(x.^2+y.^2) + eps;
sinc = sin(r)./r;
handles.sinc = sinc;
% Set the current data value.
handles.current_data = handles.peaks;
surf(handles.current_data)
1、GUI handles结构体中控件(component)的Tag属性值对应(部分)结构体字段(field)
2、Matlab中支持的数据类型包括:逻辑(logical)字符(char)数值(numeric)元胞数组(cell)结构体(structure)表格(table)函数句柄(function handle)
本结构体字段为数值、函数句柄两种类型,句柄为:handles.peaks........。
3、关于回调与中断的联系与联系,挺有趣的,改天补上
参考链接:
1、matlab handles结构体及用法
https://blog.csdn.net/xrdsjb001/article/details/76373984
2、GUI编程中回调函数的中断问题