⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vtb4_1.asv

📁 振动工具箱
💻 ASV
字号:
function [P,w,S]=vtb4_1(M,K)%VTB4_1 Natural frequencies and eigenvectors for an undamped%system.% [P,w,U]=VTB4_1(M,K) will return the natural frequencies (w),% eigenvectors (P), and mode shapes (U) for an undamped system.  % The inputs are the mass matrix M and the stiffness matrix K.  % [P,w,U]=VTB4_1(M,K,1) will also print the output of the function% to the screen.% M=[12 0;0 23];%  K=[24 -12;-12 35];% [P,w,U]=VTB4_1(M,K);%Calculates eigenvectors and eigenvaluesU=chol(M);[P,lam]=eig(U'\K/U);[w,k]=sort(sqrt(diag(lam)));P=P(:,k);% Makes sure the first entry of every column is positive. Looks% nicer for some modes. No practical use for it.for i=1:length(M)  if P(1,i)<0     P(:,i)=-P(:,i);  endendS=U\P;if nargout==0    disp('The natural frequencies are')  disp(' ')  for i=1:length(M)    disp(['omega',num2str(i),' = ',num2str(w(i)),' rad/s'])  end  disp(' ')  disp('The eigenvectors of the system are')  P  disp(' ')  disp('The mode shapes of the system are')  U  disp(' ')  disp('The modal transformation matrix S is')  Send

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -