You are on page 1of 10

- 1

1
: SIMULINK

1.

SIMULINK. ,
SIMULINK,
.
-
,

.

2.
2.1.
,
MATLAB SIMULINK
, .

- ,
.
SIMULINK , -
( ) ( ).
.

SIMULINK,
. -
,
.
- ,
,
. , ,
.

SIMULINK, MATLAB
MATLAB -

SIMULINK. - SIMULINK
, .

.
,

- 1

2.2. SIMULINK
SIMULINK MATLAB
.
SIMULINK
MATLAB.
MATLAB
MATLAB .
MATLAB (MATLAB 5.x, MATLAB 6.x, MATLAB 7.x)
SIMULINK :
- MATLAB simulink:
simulink
- MATLAB:

SIMULINK
- File MATLAB - File New Model .

SIMULINK - 1.

.1 SIMULINK
- ,
New Model :

New Model
( SIMULINK),
, ,
.
SIMULINK ( File)
, .
Open SIMULINK,
File
. . 2 SIMULINK .

- 1

.2. SIMULINK
2.3. SIMULINK
SIMULINK
.1 "Simulink".
8 - Continuous, Discrete, Functions&Tables, Math, Nonlinear, Signals&Systems,
Sinks Sources, - .3.

.3. SIMULINK

. - -
8- .
2.3.1. Continuous - .4
: Transfer Fcn -
; State-Space - A, B, C D
; Zero-Pole - ;

- 1

Integrator - ; Derivative - ; Memory, Transport Delay,


Variable Transport Delay - .

"Open the 'xxx' Library".
Continuous .4.
2.3.2. Discrete - .5
,
Continuous. Zero-Order Hold First-Order Hold
.

.4. Continuous

.5. Discrete

2.3.3. Functions&Tables
, .
- Fcn - MATLAB-Fcn - MATLAB. Fcn
.
MATLAB.
. 2. MATLAB-Fcn
MATLAB .
2.3.4. Math
, 20 .
Abs - , Gain , Logical Operator -
, Math Function -
(, , , .), Product -
, Sign - ( ) - 1 -1
, Sum - , Trigonometric
Function - .
, .
Sum Product.
2.3.5. Nonlinear
, . Relay
, Saturation - . Switch
. Quantizer
.

- 1

2.3.6. Signals&Systems
30 , -
. - Mux.
. Demux
.
2.3.7. Sinks - .6
().
.
: Display -
, Scope - , SIMULINK, Stop Simulation -
, To File -
( ), To Workspace - MATLAB, XY
Graph - ,
.
2.3.8. Sources - .7
. .
.
u(t). - : Step -
, Constant - , , Sine Wave -
, Random Number Uniform Random Number -
, Clock - , Pulse
Generator, Signal Generator Repeating Sequence - ,
.

.6. Sinks

.7. Sources

2.4. SIMULINK
SIMULINK .2.2
, .2.3,
-.
,

- 1

WINDOWS,
.
, .4 ,
.
.
SIMULINK
. Sources Pulse Generator,
. Sinks
Scope. Pulse Generator
Scope.
, ,
.
.
Continuous Integrator
Pulse Generator. , ,
: ,
, Ctrl,
.
Scope.
, Scope ( Copy
Paste). .8
SIMULINK .

.8
:
- SIMULINK:


- File - Simulation Start ;
- Ctrl+T.
Scope
- .9.
:

- 1

1 2 3
4
:
- 1 - Zoom. .
, .
Zoom out;
- 2 - Zoom X-Axis. Zoom, ;
- 3 - Zoom Y-Axis. Zoom, ;
- 4 - Autoscale. , SIMULINK
- .

.9.
- SIMULINK File Save as
SIMULINK .
work MATLAB.
File Open .
2.5.
SIMULINK , .
, ,
. ,
,
. Pulse Generator
, (.10).

.10.

- 1

, , .
. Integrator
.10.
, .
Pulse Generator 4, 25, 7, 1
.9.
Scope .11.

.11.
,
. Scope
. ,
Mux Signals&Sytems . . 12
4, 25, 7, 1 Pulse Generator.
, Gain Memory,
. Gain ,
. ,
2. Scope .

.12.
SIMULINK ,

Help (. 10).
,
- . . 13 Help-

- 1

Pulse Generator,
.

.13. Help
2.6.
-
, .. -
. SIMULINK .
.
Simulation Parameters SIMULINK,
Ctrl+E. . 14
, .

.14.
, , :
- Start time - ;
- Stop time - ;
- Solver options - Type
, Runge-Kutta (ode4).
- (. 15).
Fixed step size, 0.1,
.
,

- 1

.15.

3.
3.1. , .8, Pulse Generator
Sine Wave Lab1a.mdl.
Sine Wave.
3.2. Sine Wave:
- 2, 5, 10, 20;
- 1, 2, 10, 20 rad/s;
- 0, pi/3, pi/2, pi ( MATLAB pi , ).
3.3. Integrator Derivative Continuous
Sine Wave.
Lab1b.mdl.
3.4. a:
- 5, 20, 30 50 ;
- 50s
0.01, 0.1, 1 5s;
- .
3.5. , .12, Pulse Generator
Sine Wave Lab1c.mdl.
3.6. 0.01, 0.1, 0.5, 0.9, 1.5s 10s
ode4 Memory.
3.7. 3.1 Abs Math Scope.

Delete, . Lab1d.mdl.
Scope Abs Sine Wave
Abs.
3.8. 3.1 Integrator Sign Math
.
3.9. 3.1 Sine Wave Random Number
.

10

You might also like