- clc
- clear
- %syms w m l a b j1 j2 k1 k2 k3 k4 k5 k6
- w=36000;m=4.94;l=198.1;a=98;b=100.1;j1=1.2e+3;j2=600;k1=3.15;k2=0.018;k3=243.24;k4=204;k5=12.2;k6=10.2;
- M=[m*b/l,m*a/l,0,0;0,0,m*b/l,m*a/l;-j2/l,j2/l,0,0;0,0,-j2/l,j2/l];
- C=[-k3*k2,-k4*k2,0,0;0,0,-k3*k2,-k4*k2;-a*k3*k2,b*k4*k2,-w*j1/l,w*j1/l;-w*j1/l,w*j1/l,-a*k3*k2,b*k4*k2];
- K=[-(k5+k3*k1),-(k6+k4*k1),0,0;0,0,-(k5+k3*k1),-(k6+k4*k1);-a*(k3*k1+k5),b*(k6+k4*k1),0,0;0,0,-a*(k3*k1+k5),b*(k6+k4*k1)];
- I=eye(4);
- mm=zeros(4);
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%转换为标准特征值问题
- G=[mm,M;-inv(M)*K,-inv(M)*C];
- cri=eig(G);
- wn=cri(imag(cri)==0);
- wn=wn (wn > 0);
- wn=sort(wn)
复制代码 |