matlab矩阵方程计算

问题描述:

matlab矩阵方程计算
求使 M-aK的行列式等于0的a值
M =
[ l^2*m,0,0]
[ 0,l^2*m,0]
[ 0,0,l^2*m]
K =
[ k*h^2 + g*l*m,-h^2*k,0]
[ -h^2*k,2*k*h^2 + g*l*m,-h^2*k]
[ 0,-h^2*k,k*h^2 + g*l*m]

syms y
x=[0 1;2 3]
x =
0 1
2 3
t=inv(x'.*x).*x*y
t =
[ 0,y/2]
[ y,0]能解释一下么,亲