标题:高手帮忙看看是什么原因,运行的时候提示??? Error while evaluating uicon ...
只看楼主
qq603245807
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2011-12-1
 问题点数:0 回复次数:0 
高手帮忙看看是什么原因,运行的时候提示??? Error while evaluating uicontrol Callback
clf reset
set(gcf,'menubar','none')
set(gcf,'unit','normalized','position',[0.2,0.2,0.64,0.32]);   
set(gcf,'defaultuicontrolunits','normalized')   
h_axes=axes('position',[0.05,0.2,0.6,0.6]);  
hl=uicontrol(gcf,'style','toggle',...            
      'string','Sine Wave',...
      'position',[0.67,0.80,0.15,0.12],...
      'callback','t=0:pi/50:2*pi;y=sin(t);plot(t,y);');
hf=uicontrol(gcf,'style','toggle',...            
      'string','Sphere',...
      'position',[0.67,0.60,0.15,0.12],...
      'callback',[...
'[x,y,z]=sphere(50),',...
'hl=surf(x,y,z),',...                      %绘制球面
'hc=uicontextmenu,',...           %建立快捷菜单
'hls=uimenu(hc,"Label","渲染"),',...   
'uimenu(hls,"Label","shading flat","Call","shading flat"),',...            %建立菜单项
'uimenu(hls,"Label","shading faceted","Call","shading faceted"),',...
'uimenu(hls,"Label","shading interp","Call","shading interp"),',...
'set(hl,"UIContextMenu",hc),']); %将该快捷菜单和曲线对象联系起来

搜索更多相关主题的帖子: style position 原因 
2012-06-05 17:42



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-370858-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.120544 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved