|
楼主 |
发表于 2007-4-17 11:39
|
显示全部楼层
我的程序的一部分是
w1=1/sqrt(T1*T2+T2*T3+T1*T3);
ping1=num2str(w1);
if ping1=='Inf',
set(findobj('tag','edit11'),'string','系统稳定,无自振');
set(findobj('tag','edit12'),'string','');
else set(findobj('tag','edit11'),'string',ping1);
set(findobj('tag','edit12'),'string',z);
end
之后显示错误
??? Error using ==> eq
Matrix dimensions must agree.
Error in ==> feixianxing>pushbutton3_Callback at 640
if ping1=='Inf',
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> feixianxing at 42
gui_mainfcn(gui_State, varargin{:});
if ping1=='Inf' 用的不对? |
|