The following statement makes available functions defined in control:
use control
Step response of a continuous-time single-input single-output system.
step(num, den) step(num, den, color)
step(num,den) plots the step response of the continuous-time transfer function num/den.
step(1, [1, 2, 3, 4], 'r');
Step response of a discrete-time single-input single-output system.
dstep(num, den) dstep(num, den, color)
dstep(num,den) plots the step response of the discrete-time transfer function num/den with unit sampling period.
dstep(1, poly([0.7+0.6j, 0.7-0.6j]), 'b');
Impulse response of a continuous-time single-input single-output system.
impulse(num, den) impulse(num, den, color)
impulse(num,den) plots the impulse response of the continuous-time transfer function num/den.
impulse(1, [1, 2, 3, 4]);
Impulse response of a discrete-time single-input single-output system.
dimpulse(num, den) dimpulse(num, den, color)
dimpulse(num,den) plots the impulse response of the discrete-time transfer function num/den with unit sampling period.
dimpulse(1, poly([0.7+0.6j, 0.7-0.6j]), 'm');
Bode diagram of a continuous-time single-input single-output system (magnitude only).
bode(num, den) bode(num, den, color)
bode(num,den) plots the magnitude of the frequency response of the continuous-time transfer function num/den.
bode(1, poly([0.7+0.6j, 0.7-0.6j]), 'g');
Bode diagram of a discrete-time single-input single-output system (magnitude only).
dbode(num, den, Ts) dbode(num, den, Ts, color)
dbode(num,den,Ts) plots the magnitude of the frequency response of the discrete-time transfer function num/den with sampling period Ts.
dbode(1, poly([0.7+0.6j, 0.7-0.6j]), 1);