Matlab Simulink
Matlab Simulink
toMATLAB
MATLAB
Introduction
MATLAB SIMULINK
Prepared by Mohammed Salah
Supervised by
DR . Samir Badwy
10/30/16
MATLAB SIMULINK
Introduction
Agend
a
MATLAB Simulink
Some Examples
10/30/16
MATLAB SIMULINK
Introduction
10/30/16
MATLAB SIMULINK
What is MATLAB?
10/30/16
MATLAB SIMULINK
MATLAB Toolboxes
MATLAB has a number of add-on software modules, called
toolboxes, that perform more specialized computations.
10/30/16
Communications.
Robust control.(MIMO)
Signal processing.
Image processingetc.
MATLAB SIMULINK
Frequency
Domain
Identificatio
n Toolbox
Control
Systems
Toolbox
Fuzzy
Logic
Toolbox
10/30/16
System
Identificatio
n Toolbox
Model
Predictive
Control
Toolbox
Signal
Processing
Toolbox,
MATLAB Toolboxes
MATLAB SIMULINK
Image
Processin
g Toolbox
Typicaluses
usesinclude
include
Typical
Math and computation.
Algorithm development.
Data acquisition.
Modeling, simulation, and
prototyping.
Data analysis, exploration,
and visualization.
Scientific and engineering
graphics.
Application development,
including graphical user
interface building.
10/30/16
MATLAB SIMULINK
10/30/16
Current Directory
View folders
and m-files
SIMULINK
M-file or
MATLAB
script
demo
10/30/16
Command Window
type commands
Workspace
View program
variables
Double click on a
variable to see it in
the Array Editor
Help
MATLAB
DEMOS
Command History
MATLAB Demos
10/30/16
MATLAB SIMULINK
ENGINEERING
FACULTU OF ELECTORNIC
10
MATLAB SIMULINK
ENGINEERING
FACULTU OF ELECTORNIC
11
SCREENS
FOR
EXECUTE
COMMANDS
Program
In
written
form
Comma
nd
window
10/30/16
Graphic
M-file
or
MATLA
B script
MATLAB SIMULINK
SIMULIN
K
12
MATLABSimulink
Simulink
MATLAB
10/30/16
MATLAB SIMULINK
13
MATLAB
Simulink
Simulink
software models, simulates, and
10/30/16
MATLAB SIMULINK
ENGINEERING
FACULTU OF ELECTORNIC
14
Modeling Process
There are six steps to modeling any
system:
1.Defining the System.
2.Identifying System Components.
3.Modeling the System with
Equations.
4.Building the Simulink Block
Diagram.
5.Running the Simulation.
6.Validating the Simulation Results.
10/30/16
MATLAB SIMULINK
15
SIMULINK
SIMULINK
10/30/16
MATLAB SIMULINK
16
mode
l
10/30/16
MATLAB SIMULINK
ENGINEERING
New Model
FACULTU OF ELECTORNIC
18
Some
Examples
10/30/16
MATLAB SIMULINK
19
DC Motor Principle
A machine that converts dc power into mechanical
energy is known as dc motor.
Its operation is based on the principle that when a
current carrying conductor is placed in a magnetic
field, the conductor experiences a mechanical force.
The direction of the force is given by Flemings left
hand rule.
10/30/16
MATLAB SIMULINK
ENGINEERING
FACULTU OF ELECTORNIC
20
10/30/16
MATLAB SIMULINK
21
10/30/16
MATLAB SIMULINK
22
10/30/16
MATLAB SIMULINK
ENGINEERING
FACULTU OF ELECTORNIC
23
DC Motor Applications
TECO-Westinghouse Motor Company
DC
motors are ideally suited to a multitude of
industrial and marine applications in which high
torque and variable speed are required.
These applications include ship propulsion, mine
hoists and steel rolling mills.
10/30/16
MATLAB SIMULINK
24
Example.1
Unit step
PI
CONTROLLE
R
5
Gain
10/30/16
MATLAB SIMULINK
1.9
output
0.0143S+1
TF OF DC motor
25
10/30/16
MATLAB SIMULINK
26
10/30/16
MATLAB SIMULINK
27
File save
28
10/30/16
MATLAB SIMULINK
29
10/30/16
MATLAB SIMULINK
30
10/30/16
MATLAB SIMULINK
ENGINEERING
FACULTU OF ELECTORNIC
32
10/30/16
MATLAB SIMULINK
33
10/30/16
MATLAB SIMULINK
34
EXERCISE
Example.2
Unit step
10/30/16
CONTROLLE
R
MATLAB SIMULINK
PD
controller.
PID controller.
1
output
S^2+7S+5
35
GENERAL
REFERENCE
SIMULINK Dynamic System Simulation for
MATLAB.
Introduction to Simulink with
Engineering Applications.
10/30/16
MATLAB SIMULINK
FACULTU OF
ELECTORNIC ENGINEERING
36