Professional Documents
Culture Documents
BFC12 X Mqjy 8 HPMLBK KRDSizs VX DVPD UCFAHkf 2 Q GN 5 Y
BFC12 X Mqjy 8 HPMLBK KRDSizs VX DVPD UCFAHkf 2 Q GN 5 Y
BFC12 X Mqjy 8 HPMLBK KRDSizs VX DVPD UCFAHkf 2 Q GN 5 Y
MEEM 3700
z 2 = x&
MEEM 3700
The ode function file that computes the values of z&1 and z&2
and stores them in a column vector might look like:
function f=example(t,z)
x=z(1);
xd=z(2);
xdd=-1/3*(8*xd+100*x)
f=[xd;xdd];
Note
MEEM 3700
MEEM 3700
MEEM 3700
10
function f=shapsdof(t,z)
global m c k
x=z(1);
xd=z(2);
f=zeros(2,1);
xdd=[-(c/m)*xd-(k/m)*x];
f=[xd;xdd];
MEEM 3700
11
MEEM 3700
Mechanical Vibrations
Shapton
Mechanical Engineering-Engineering Mechanics
Michigan Technological University
Copyright 2007
Lecture 7- Simulink
MEEM 3700
MEEM 3700
Lecture 7- Simulink
MEEM 3700
MEEM 3700
MEEM 3700
Lecture 7- Simulink
MEEM 3700
1
s
1
s
Integrator
Integrator1
1
Gai n2
Scope
8
Gai n
1
Gai n1
Lecture 7- Simulink
MEEM 3700
1
s
Integrator
Integrator1
1
Gai n2
Scope
8
Gai n
1
Gai n1
1
s
1
s
Integrator
Integrator1
Scope
8
Gain
1
Gain1
Lecture 7- Simulink
MEEM 3700
&x&
-1/3
-K-
x&
1
s
Gain2
1
s
Integrator
Integrator1
x
Scope
8 x&
Gain
-K-
100 x
Gain1
100
6
5
Displacemenl - inches
4
3
2
1
0
-1
-2
-3
Lecture 7- Simulink
0.5
1.5
t - sec
MEEM 3700
2.5