青年梦想家 发表于 2015-7-29 23:55

【奠基经典】MATLAB实用程序案例之曲线标记








曲线标记
实例
h0=figure('toolbar','none',...
'position',,...
'name','my second gui');
h1=axes('parent',h0,...
'position',,...
'visible','on');
x=0:0.1:2*pi;
k=plot(x,sin(x),'*');
xlabel('自变量X');
ylabel('函数值Y');
title('标记类型的改变');
p1=uicontrol('parent',h0,...
'style','pushbutton',...
'string','+',...
'fontsize',20,...
'foregroundcolor',,...
'backgroundcolor',,...
'position',,...
'callback','set(k,''marker'',''+'')');
p2=uicontrol('parent',h0,...
'style','pushbutton',...
'string','o',...
'fontsize',20,...
'foregroundcolor',,...
'backgroundcolor',,...
'position',,...
'callback','set(k,''marker'',''o'')');
p3=uicontrol('parent',h0,...
'style','pushbutton',...
'string','x',...
'fontsize',20,...
'foregroundcolor',,...
'backgroundcolor',,...
'position',,...
'callback','set(k,''marker'',''x'')');
p4=uicontrol('parent',h0,...
'style','pushbutton',...
'backgroundcolor',,...
'fontsize',20,...
'fontweight','demi',...
'string','关闭',...
'position',,...
'callback','close');
t1=uicontrol('parent',h0,...
'style','text',...
'string','星号',...
'fontsize',12,...
'fontweight','demi',...
'position',);
t2=uicontrol('parent',h0,...
'style','text',...
'string','圆圈',...
'fontsize',12,...
'fontweight','demi',...
'position',);
t3=uicontrol('parent',h0,...
'style','text',...
'string','叉号',...
'fontsize',12,...
'fontweight','demi',...
'position',);


关于本帖内容欢迎大家踊跃讨论,与在下交流!

页: [1]
查看完整版本: 【奠基经典】MATLAB实用程序案例之曲线标记