|
楼主 |
发表于 2006-4-17 12:47
|
显示全部楼层
方法1<BR>syms x <BR>A=[x 1; 1 1];<BR>s=solve('det(A)=0','x')<BR><BR>??? Error using ==> solve<BR>'det(A)=0' is not a valid expression or equation.<BR>方法2<BR> syms x <BR>A=[x 1; 1 1];<BR>s=det(A)<BR>solve('s=0','x')<BR> <BR>s =<BR> <BR>x-1<BR> <BR>??? Error using ==> solve<BR>方法3<BR>> syms x <BR>A=[x^2 1; 1 1];<BR>det(A)<BR>f=solve(det(A))<BR> <BR>ans =<BR> <BR>x^2-1<BR> <BR> <BR>f =<BR> <BR>[ 1]<BR>[ -1]<BR>Error, (in fsolve) s, is in the equation, and is not solved for<BR>方法3基本可以解决!<BR>不知道还有方法没????<BR><BR> |
|