有没有MATLAB高手帮我看下这个程序。

来源:百度知道 编辑:UC知道 时间:2024/05/31 20:09:01
uicontrol('parent',h0,...
'units','points',...
'tag','b4',...
'style','pushbutton',...
'string','目标的核',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[30 60 50 20],...
'callback',[...
'cla,',...
'imshow(k4)']);
请老师帮我详细解说下每个命令的功能把。我是初学者,谢谢先。

整个程序就是为了画个按钮
uicontrol('parent',h0,... %h0为按钮所在的figure的句柄
'units','points',... %单位为points
'tag','b4',... %标签
'style','pushbutton',... %类型为按钮
'string','目标的核',... %按钮上的字为目标的核
'backgroundcolor',[0.75 0.75 0.75],... %按钮的背景色
'position',[30 60 50 20],... %按钮的位置,以points为单位计算
'callback',[... %按钮按下执行的函数为cla,imshow(k4)
'cla,',...
'imshow(k4)']);

这个比较难,一般人不懂啊,最后一句看懂了,是图像显示函数,其它的没见过,我也是初学者