用MATLAB如何求a=sym('[x,x^2,x^3;1,2x,3x^3;4,2,6x]')的行列式?

问题描述:

用MATLAB如何求a=sym('[x,x^2,x^3;1,2x,3x^3;4,2,6x]')的行列式?

>> a=sym('[x,x^2,x^3;1,2*x,3*x^3;4,2,6*x]')
a =
[ x,x^2,x^3]
[ 1,2*x,3*x^3]
[ 4,2,6*x]
>> det(a)
ans =
12*x^5 - 14*x^4 + 8*x^3
>>