












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions on using matlab and simulink to solve engineering problems, specifically focusing on time integration problems. It includes examples of constructing and running simulink models, as well as defining variables and parameters in the matlab workspace. The output can be sent back to matlab for creating professional plots.
Typology: Assignments
1 / 20
This page cannot be seen from the preview
Don't miss anything!













S co p e 1
S co p e
s
1
In te g ra to r
s
1
In te g ra to r
2 5 0 0 *u /5. Fcn 1
1 0 *u /5. Fcn
S co p e
s
1
In te g ra to r
s
1
In te g ra to r
D
G a i n 2
K 1
G a i n 1
1 /M 1
G a i n
X Y G ra p h 1
X Y G ra p h
xo u t
T o Wo rksp a ce 2
yo u t
T o Wo rksp a ce 1
ti m e
T o Wo rksp a ce
S i n e Wa ve
S co p e
M A T L A B Fu n cti o n M A T L A B Fcn c os
[A ]
G o to
[A ]
Fro m
0
Di sp l a y
Cl o ck
S co p e 1
S co p e
s
1
In te g ra to r
s
1
In te g ra to r
2 5 0 0 *u /5.
Fcn 1
1 0 *u /5.
Fcn
M1, D1, K1 and IC’s and integration constants must or can be defined in MATLAB workspace.
The output can be sent back to MATLAB workspace to make a good professional plot with ease.
S co p e
s
1
In te g ra to r
s
1
In te g ra to r
D
G a i n 2
K 1
G a i n 1
1 /M 1
G a i n
The MATLAB m-file to run and plot results of above Simulink model:
% R.G. Kirk 3-22-2000 See What You Can DO if Only You Try % file run_ws_demo1_2001_F.m calls sys_ws_demo1gk_2000.mdl % MATLAB m-file or script file call SIMULINK mdl file % Data variables can be hard wired or interactive or combo % Results returned via scope options, may also use other methods close all; clear all; disp(' ==============================================================='); disp(' == You are running a SIMULINK simulation program from =='); disp(' == a MATLAB m-file with post processor for plot of response =='); disp(' ==============================================================='); % Define the variables you have used in the mdl file of SIMULINK % with no input it would be as follows: %M = 2000; %M1 = M/386; %K1 = 3000; %D1 = 50; %ICv = 90; %ICx = 0.
RELEASE 13