请教:Missing variable or function.的问题!
clearFigWin=figure('Position',[150,300,650,350],...
'Name','Multivariate Statistical for Process Monitoring',...
'NumberTitle','off'); % 书写图形窗名
set(FigWin, 'menubar' , 'none'); % 删除图形窗工具条
AxesHandle=axes('Position',[0.4 0.2 0.5 0.7],...
'Box','on');
push1=uicontrol(FigWin,...
'Style','pushbutton',...
'Position',[50 200 100 30],...
'String','Plot Q',...
'CallBack',...
['subplot(AxesHandle);'...
'x=0:.1:4*pi;'...
'FunHandle=plot(x,sin(x),ColorStr);'...
'axis([0 4*pi -1 1]);'...
'grid on;'...
'xlable("x");'...
'ylable("y=sin(x)");']);
push2=uicontrol(FigWin,...
'Style','pushbutton',...
'Position',[50 150 100 30],...
'String','Plot T^2',...
'CallBack',...
['subplot(AxesHandle);'...
'x=0:.1:4*pi;'...
'FunHandle=plot(x,cos(x),ColorStr);'...
'axis([0 4*pi -1 1]);'...
'grid on;'...
'xlable("x");'...
'ylable("y=sin(x)");']);
push3=uicontrol(FigWin,...
'Style','pushbutton',...
'Position',[50 100 100 30],...
'String','Exit',...
'CallBack',...
['close(FigWin)']);
ColorStr='r';
x=0:.1:4*pi;
FunHandle=plot(x,sin(x),ColorStr);
axis([0 4*pi -1 1]);
问题:Error: Missing variable or function.
我说的就是点了建好的按钮,除了push3能用外,都是这样提示,请教大虾原因何在?
还有如果我在程序后加上xlable 也会出问题,不知道是不是软件的问题,请赐教,不胜感激!