impulseplot - Plot impulse response and return plot handle

Syntax

h = impulseplot(sys)
impulseplot(sys)
impulseplot(sys,Tfinal)
impulseplot(sys,t)
impulseplot(sys1,sys2,...,t)
impulseplot(AX,...)
impulseplot(..., plotoptions)

Description

h = impulseplot(sys) plots the impulse response of the LTI model sys (created with either tf, zpk, or ss). For multiinput models, independent impulse commands are applied to each input channel. The time range and number of points are chosen automatically. For continuous systems with direct feedthrough, the infinite pulse at t=0 is disregarded. impulseplot also returns the plot handle, h. You can use this handle to customize the plot with the getoptions and setoptions commands. Type

help timeoptions 

for a list of available plot options.

impulseplot(sys) plots the impulse response of the LTI model without returning the plot handle.

impulseplot(sys,Tfinal) simulates the impulse response from t=0 to the final time t=Tfinal. For discrete-time systems with unspecified sampling time, Tfinal is interpreted as the number of samples.

impulseplot(sys,t) uses the user-supplied time vector t for simulation. For discrete-time models, t should be of the form Ti:Ts:Tf, where Ts is the sample time. For continuous-time models, t should be of the form Ti:dt:Tf, where dt becomes the sample time of a discrete approximation to the continuous system. The impulse is always assumed to arise at t=0 (regardless of Ti).

impulseplot(sys1,sys2,...,t) plots the impulse response of multiple LTI models sys1,sys2,... on a single plot. The time vector t is optional. You can also specify a color, line style, and marker for each system, as in

impulseplot(sys1,'r',sys2,'y--',sys3,'gx')

impulseplot(AX,...) plots into the axes with handle AX.

impulseplot(..., plotoptions) plots the impulse response with the options specified in plotoptions. Type

help timeoptions 

for more detail.

Remarks

You can change the properties of your plot, for example the units. For information on the ways to change properties of your plots, see Ways to Customize Plots.

Example

Normalize the impulse response of a third-order system.

sys = rss(3);
h = impulseplot(sys);
% Normalize responses
setoptions(h,'Normalize','on');

See Also

getoptions, impulse, setoptions

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS