Control Package: gensig
Categories &
Functions List
- Function File:
[u, t] =gensig(sigtype, tau) - Function File:
[u, t] =gensig(sigtype, tau, tfinal) - Function File:
[u, t] =gensig(sigtype, tau, tfinal, tsam)
Generate periodic signal. Useful in combination with lsim.
Inputs
- sigtype = "sin"
Sine wave.
Cosine wave.
Square wave.
Periodic pulse.
Duration of one period in seconds.
Optional duration of the signal in seconds. Default duration is 5 periods.
Optional sampling time in seconds. Default spacing is tau/64.
Outputs
- u
Vector of signal values.
Time vector of the signal.
Source Code: gensig