step

Compute the step response of a control system.

Syntax

[y,t,x] = step(sys)

[y,t,x] = step(sys,t)

[y,t,x] = step(sys,tfinal)

[y,t,x] = step(sys,tfinal,ts)

step(...)

Inputs

sys
The control system.
Type: class
t
The vector of times at which to compute the response. The vector should be equally spaced.
Type: double
Dimension: vector
tfinal
The time interval for which to compute the response. Omit or use [] to allow the function to determine an appropriate value.
Type: double
Dimension: scalar
ts
The time interval for sampling a continuous system.
Type: double
Dimension: scalar

Outputs

y
The step response.
Type: double
Dimension: vector
t
The time vector for the response.
Type: double
Dimension: vector
x
The state trajectory matrix.
Type: double
Dimension: matrix

Example

Verify the step response of a fourth order Butterworth low pass digital filter with a 300 Hz cutoff frequency and a 2000 Hz sampling frequency.

[b,a] = butter(4,300/(2000/2));
ts = 0.0005;
tfb = tf(b,a,ts);
step(tfb);


Figure 1. step figure 1

Comments

If the output arguments are omitted, the function will plot the results.

When defaulted tfinal will be chosen so that the response has settled to within 0.5%.