stepplot
Plot step response with additional plot customization options
Syntax
Description
stepplot
lets you plot dynamic system step responses with a
broader range of plot customization options than step
. You can use
stepplot
to obtain the plot handle and use it to customize the plot, such
as modify the axes labels, limits and units. You can also use stepplot
to
draw a step response plot on an existing set of axes represented by an axes handle. To
customize an existing step plot using the plot handle:
Obtain the plot handle
Use
getoptions
to obtain the option setUpdate the plot using
setoptions
to modify the required options
For more information, see Customizing Response Plots from the Command Line. To create step plots with default options or to
extract step response data, use step
.
plots
the step response of the dynamic system model
h
= stepplot(sys
)sys
and returns the plot handle h
to the plot. You
can use this handle h
to customize the plot with the getoptions
and setoptions
commands.
simulates the step response from h
= stepplot(___,tFinal
)t = 0
to the final time t =
tFinal
. Specify tFinal
in the system time units, specified
in the TimeUnit
property of sys
. For discrete-time
systems with unspecified sample time (Ts = -1)
,
stepplot
interprets tFinal
as the number of sampling
intervals to simulate.
plots the step response with the options set specified in h
= stepplot(___,plotoptions
)plotoptions
.
You can use these options to customize the step plot appearance using the command line.
Settings you specify in plotoptions
overrides the preference settings
in the MATLAB® session in which you run stepplot
. Therefore, this syntax
is useful when you want to write a script to generate multiple plots that look the same
regardless of the local preferences.
plots the step response with the options set specified in h
= stepplot(___,dataoptions
)dataoptions
.
You can use this syntax to specify options such as the step amplitude and input offset using
the options set dataoptions
. This syntax is useful when you want to
write a script to generate multiple plots with the same option set. Use stepDataOptions
to create the options set.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a
See Also
getoptions
| setoptions
| step
| stepDataOptions
| timeoptions