行列式中有未知量,用matlab解一个“行列式=0”格式的方程可是出现错误,求大神指点
>m1=100;m2=100;m3=100;k1=50;k2=50;k3=50;M=[m1,0,0;0,m2,0;0,0,m3];K=[k1+k2,-k2,0;-k2,k...
> m1=100;m2=100;m3=100;
k1=50;k2=50;k3=50;
M=[m1,0,0; 0,m2,0;0,0,m3];
K=[k1+k2,-k2,0;-k2,k2+k3,-k3;0,-k3,k3];
syms w;
B=K-w^2.*M;
solve('det(B)=0','w')
??? Error using ==> solve
' det(B)=0 ' is not a valid expression or equation. 展开
k1=50;k2=50;k3=50;
M=[m1,0,0; 0,m2,0;0,0,m3];
K=[k1+k2,-k2,0;-k2,k2+k3,-k3;0,-k3,k3];
syms w;
B=K-w^2.*M;
solve('det(B)=0','w')
??? Error using ==> solve
' det(B)=0 ' is not a valid expression or equation. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |