MATLAB , , .
() ControlSystemToolbox (CST), , , -, , , .
. 1. ControlSystemToolbox.
- , : (lineartimeinvariantobjects, lti -). , (SISO-) (MIMO-).
CST , : , . (. 1).
ControlSystemToolbox . (-), .
CST :
1) tf- ;
2) zpk- , ;
3) ss- .
:
1) tf- :
2) zpk- , :
3) ss- :
ControlSystemToolbox , tf-, zpk- ss- lti-. , , . , P=tf([1 2],[1 1 10]) tf
|
|
, lti-, , ( ) bode (P).
1.
ControlSystemToolbox :
1 | |
2 | |
3 |
, , . SysD = c 2 d (SysC, Ts), SysC Ts.
step (H, g -, Hd, r -) , H , Hd .
. frsp = evalfr (sys, w), sys lti -, w . w =1+ j.
2.
zpk-. :
h = zpk (0, [1- i 1+ i 2], -2).
Matlab . ? ( ) ?
3.
. (. 2), 2- :
. 2. .
, :
C ss - ( ):
sys = ss (A, B, C, D).
Matlab ss-. dss (A, B, C, D, E)?
** *
Simulink
Simulink Matlab , . , , .
Simulink Sources (. 3):
. 3. Sources.
, :
Band-Limited White Noise ;
Constant ;
Pulse Generator ;
Random Number ;
Signal Generator : , , ;
|
|
Sine Wave ;
Step ;
Uniform Random Number .
Sinks , :
Display ;
Out ;
Scope ;
Floating Scope , ;
Terminator ;
To File mat- ;
To Workspace Workspace;
XY Graph .
Math Operations:
Abs ;
Add ;
Bias ;
Gain ;
Math Function (, , .);
Product ;
Sign ;
Substract ;
Sum .
(.. ), Simulink SignalRouting (. 4):
. 4. Simulink.
SignalRouting : , , . SignalRouting:
Bus Creator ;
Mux ;
Demux / ;
Goto From;
From Goto;
Switch .
, , , , .
Simulink (Toolboxes), SimulinkLibraryBrowser. , , (SignalProcessingBlockset), (ModelPredictiveControlToolbox), (NeuralNetworkToolbox), (FuzzyLogicToolbox).
4.
s- ( LR 2_< your _ name >_ FirstModel. mdl ), , ( ). ( . 5). (Scope), ( [1]) Parameters ( ) , General NumberofAxes ( ). Start , Play ( Simulation → Start). :
|
|
. 5. s-, .
( Mux) (. 6):
. 6. s- .
1 | Sine Wave | Band-Limited White Noise |
2 | Signal Generator | Random Number |
3 | Step | Uniform Random Number |
, ? ? , , PulseGenerator CounterFree-running?
:
1) , ;
2) ;
3) ControlSystemToolbox Simulink, .
1 : - ; .