User`s guide

Table Of Contents
Time and Frequency Response
5-11
Note: When specifying a time vector t = [0:dt:tf],rememberthe
following constraints on the spacing
dt between time samples:
For discrete systems,
dt should match the system sample time.
Continuous systems are first discretized using zero-order hold and
dt as
sampling period, and
step simulates t he resulting discrete system. As a
result, you should pick
dt small enough to capture the main features of the
continuous transient response.
The syntax step(sys) automatically takes these issues into account.
Finally, the function
lsim simulatestheresponsetomoregeneralclassesof
inputs. For example,
t = 0:0.01:10
u = sin(t)
lsim(sys,u,t)
simulates the zero-initial condition response of the LTI system sys to a sine
wave for a duration of 10 seconds.
Note: You can also implement several plotting options by using the
right-click menus accessible from the (white) plot region of all time and
frequency plots. These options are listed on the menu. To learn more about the
right-click menus on plots, see “The Right-Click Menus” on page 6-18
Frequency Response
The Control System Toolbox provides response-plotting functions for the
following frequency domain analysis tools:
Bode plots
Nichols charts
Nyquist plots
Singular value plots