Plot simulation output data in the Simulation Data Inspector
plot(
plots the simulation output
data in the simulation output object, simOutObj
)simOutObj
, in the Simulation Data
Inspector and opens the Simulation Data Inspector so you can view the plotted simulation
output data. You can use the plot
function to plot simulation results
stored in these simulation output objects:
These simulation output objects also have plot functions that plot the data in and then open the Simulation Data Inspector:
When a simulation output object contains fewer than eight signals to plot, the
Simulation Data Inspector layout changes to 1
-by-n
,
where n
is the number of signals to plot, and plots one signal on each
subplot. When the simulation output object contains more than eight signals to plot, the
Simulation Data Inspector layout changes to 1
-by-1
and
plots the first signal in the simulation output object.
When some or all of the data in a Simulink.SimulationOutput
object is in
a Simulation Data Inspector run, the plot
function opens the Simulation
Data Inspector and plots all the signals in the run. When you do not select the
Record logged workspace data in Simulation Data Inspector option,
logged states data does not appear in the Simulation Data Inspector and is not plotted. When
the data does not correspond to a run in the Simulation Data Inspector, the
plot
function imports the data to a new run. When you use the
plot
function to plot a single signal, the plot
function always imports the data for the signal to a new run.
returns the runObj
= plot(simOutObj
)Simulink.sdi.Run
object corresponding to the
plotted data.