rhs_smd.mht

来自「it is a very essential matlab code.」· MHT 代码 · 共 38 行

MHT
38
字号
From: <Saved by Windows Internet Explorer 7>
Subject: 
Date: Tue, 12 May 2009 09:54:08 -0700
MIME-Version: 1.0
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: 7bit
Content-Location: http://www.mece.ualberta.ca/Courses/mec390/390code/rhs_smd.m
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY><PRE>function f = rhs_smd(t,x,xd);
% RHS of ODE for forced SDOF spring-mass-damper system

m = 500;         % mass
c =  200;         % damping coefficient
k = 750;        % spring constant
omega = 5;       % forcing frequency (rad/s)
F0 = 2000;       % forcing magnitude

% use this for testing
if (t &gt; 2) &amp; (t &lt; 15)
  F = F0;
else
  F = 0;
end


%F = F0*sin(omega*t);  % forcing function

f = (F - c*xd - k*x)/m;


</PRE></BODY></HTML>

⌨️ 快捷键说明

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