, MATLAB , Data Import/Export (. 5.7).
. 5.7. Workspace I/O
3 :
Load from workspace ( ). Input ( ) , , Matlab. Initial State ( ) , . , Input Initial State, In ( Sources).
Save to workspace ( ) MATLAB .
Save options ( ) . Limit rows to last , ( ). , . Decimation () . Format ( ) . Array (),
Structure (), Sstructure With time ( ).
Output options ( ) ( . :
Refine output ( ) , Matlab Workspace. Refine factor, . Refine factor 1, , Dt = 1 ( ). Refine factor 2, , , 3 . . Refine factor
Produce additional output ( ) ; ( Output times) , . (Dt) 1. Output times .
Produce specified output only ( ) , Output times ( ).
|
|
5.1.5. .
Simulation/Start . , Simulation/Stop . (Simulation/Pause) (Simulation/Continue).
Simulink, , , . , , , .
5.2. Simulink
5.2.1. Sources
, . . , . Simulink (. 5.2)
. 5.8.
:
1. (Model and Subsystem Inputs).
2. (Signal Generators).
.
In . .
(Port number] (Port dimensions, (Data type):
Ground . .
- , MATLAB . Ground.
.5.8.
From File . .
(File Name), (Sample time).
.
, , . , , . . , . Simulink mat- To File ( Sinks). . 5.9 . pila.mat ( To_From_File).
. 5.9. : To File From File
: 23
From Workspace MATLAB. . , .
Constant .
, , .
Sine Wave , , .
|
|
:
= Amplitude* sin(frequency* time + phase) + bias.
Amplitude .
Bias
Frequency (rads/sec) (/).
Phase (rads) ().
Sample time . .
Signal Generator . :
sine .
square .
sawtooth .
random .
(Amplitude), (Frequency).
. 5.10. Sine Wave Signal Generator - ( Mod_PWM).
. 5.10. -
: 23
, Signal Generator. - .
Ramp . = Slope* time + Initial value.
(Slope), (Start time), (Initial value).
Step . (Final value) (Step time).
Repeating Sequence . , :
Time values .
Output values Time values.
. 5.11 Step Repeating Sequence - . Step: Step time = 0.005 (), Initial value = 0.6
. 5.11. -
Final value = 0.6. Repeating Sequence [0 0.01 0.02], [-1 1 -1].
Pulse Generator . (Amplitude), (Period) (Pulse width).
. 23