initialplot
Plot initial condition response with additional plot customization options
Syntax
Description
initialplot
lets you plot initial condition responses with a
broader range of plot customization options than initial
. You can use
initialplot
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
initialplot
to plot initial condition response on an existing set of axes
represented by an axes handle. To customize an existing 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 initial condition response plots with
default options or to extract initial condition response data, use initial
.
plots the initial condition response of states of the dynamic system model
h
= initialplot(sys
,x0
)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 response of initial conditions from h
= initialplot(___,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)
,
initialplot
interprets tFinal
as the number of
sampling intervals to simulate.
plots the response of the initial conditions with the options set specified in
h
= initialplot(___,plotoptions
)plotoptions
. You can use these options to customize the plot
appearance using the command line. Settings you specify in plotoptions
overrides the preference settings in the MATLAB® session in which you run initialplot
. 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.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a