| NGMV Control Toolbox | ![]() |
Deterministic signal generator (structure with time format)
Syntax
Description
This routine generates a signal U in structure-with-time format (as used by the Simulink From workspace block) of time duration TF and dimension and type specified in SPECS. TS is the sampling time in seconds. If omitted, it is set to its default value TS = 1.
SPECS is a cell array of the form {TYPE1,PAR1,TYPE2,PAR2,...}. The following signal types are available:
TYPE |
Description | PAR |
'zero' |
zero signal | [] |
'steps' |
series of steps | [T1,U1,T2,U2,…] |
'ramp' |
ramp signal | [SLOPE] |
'sin' |
sine wave | [AMPLITUDE, PERIOD] |
'square' |
square wave | [AMPLITUDE, PERIOD] |
'sawtooth' |
triangular wave |
|
|
shiftz | sigpred | ![]() |