如何挑选大的那个数
利用=solve(h1,c);
得到c1的值
如运行出来c1 的值为
c1 =
1.8419410173870144581842266837108
.75677920216658686628649987256330
现在我只要大的那个数1.8419410173870144581842266837108 赋给变量a
怎么弄呢? max(c1) max max()试过了
报错
??? Function 'max' is not defined for values of class 'sym'.
Error in ==> feixianxing>pushbutton3_Callback at 814
=solve(h1,c);c1=max(c1);
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> feixianxing at 42
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback. 原帖由 jennychung 于 2007-5-21 13:41 发表 http://www.chinavib.com/forum/images/common/back.gif
max()试过了
报错
??? Function 'max' is not defined for values of class 'sym'.
Error in ==> feixianxing>pushbutton3_Callback at 814
=solve(h1,c);c1=max(c1);
Error in ==> gui_m ...
c1 = subs(c1);
a = max(c1(:));
页:
[1]