MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/)
-   MATLAB论坛 (https://www.labfans.com/bbs/f6/)
-   -   【求助】matlab编可视化时碰到的一个问题 (https://www.labfans.com/bbs/t631/)

44485592 2007-07-26 08:34 PM

【求助】matlab编可视化时碰到的一个问题
 
clf;
gcf=figure('Unit','normalized','Position',[0.15,0.3,0.75,0.4583],'Menubar','none','Name',…
'产生图形','NumberTitle','off','Color','r');
pbstart=uicontrol(gcf,'Style','push','Unit','normalized','Position',…

[0.64,0.1,0.15,0.1],'string','绘图','call','t=0:pi/20:2*pi;…
plot(t,sin(t));axis([0 2*pi -1 1])');
yingli=uicontrol(gcf,'Style','Edit','Unit','normalized','Position',…

[0.8,0.9,0.18,0.08],'back','w','HorizontalAlignment','left','string','ttt');
hpop=uicontrol…(gcf,'Style','push','string','按钮',Position',…

[100,100,100,80],'call','set(yingli,"string","b")');

运行后按 按钮 控件 报错如下

??? Error: Missing variable or function.

??? Error while evaluating uicontrol Callback.

发现call 不能和 set 还有get 一起用,但是我参考书上Call属性后面跟着的语句里面有Set,

如'call','set(yingli,"string","b")哪位高手指导一下
我的QQ 44485592 邮箱3064980@163.com 不胜感激


所有时间均为北京时间。现在的时间是 12:36 AM

Powered by vBulletin
版权所有 ©2000 - 2020,Jelsoft Enterprises Ltd.


SEO by vBSEO ©2009, Crawlability, Inc.