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

📄 animate2.m

📁 利用matalab编制的转子动力学计算软件。其中模型利用有限元建模
💻 M
字号:
function [wx,wy]=animate2(vx,vy,n)
%w=animate2(vx,vy,n)
% animate a complex mode shape for a vibrating system
%
% input :
%          v  -   complex (real) mode shape
%          n  -   number of devitions in a cycle (2*pi) [optional]
%
%  output :
%          w  -   a matrix of rotated & scaled mode shapes for plotting
%
%    USE   plot(w) to see mode animated

% bucher izhak  4/10/89

if nargin<3,n=8;end
dp=pi/n; vx=vx(:); vy=vy(:);
 wx=[];  wy=wx;
 for p=0:dp:pi*2
    v1=real(vx)*cos(p)-imag(vx)*sin(p);
    v2=real(vy)*cos(p)-imag(vy)*sin(p);
  wx=[wx v1]; wy=[wy v2];
 end

⌨️ 快捷键说明

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