plot
Description
plot(
plots the simulation results in
the object simRes
)simRes
in the Simulation Data
Inspector and opens the Simulation Data Inspector. You can use the
plot
function to plot simulation results stored in these objects:
When the input object contains fewer than eight signals, the Simulation Data Inspector
layout changes to 1
-by-n, where n
is the number of signals, and each subplot displays one signal. When the simulation results
contain more than eight signals to plot, the Simulation Data Inspector layout changes to
1
-by-1
, and the plot displays the first signal.
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 the
SimulationOutput
object does not correspond to a run in the Simulation
Data Inspector, the plot
function imports the data into a new
run.
When you use the plot
function to plot a single signal, the
plot
function always imports the data for the signal into a new
run.
These objects also have plot functions that plot data in the Simulation Data Inspector:
returns the runObj
= plot(simRes
)Simulink.sdi.Run
object that corresponds to
the plotted data.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019b