Documentation

Visualize and Evaluate Results

View simulation data, view and compare data from multiple runs, determine if model represents real system

Simulink® provides several methods to view and analyze simulation results. The Simulation Data Inspector allows you to view and inspect signal data from live simulations or from imported data. The Simulation Data Inspector also allows you to group data from multiple simulations on multiple plots, which gives you a comprehensive view of your data. For information, see Inspect Signal Data with Simulation Data Inspector.

Other visualization methods display results live during simulation, or export signal values to the MATLAB® workspace for later retrieval and analysis. For information on approaches to viewing simulation results, see Decide How to Visualize Simulation Data.

Blocks

Scope Display signals generated during simulation
Floating Scope Display signals generated during simulation
XY Graph Display X-Y plot of signals using MATLAB figure window
Dashboard Scope Trace signals during simulation
Gauge Display input value on circular scale
Half Gauge Display input value on semicircular scale
Linear Gauge Display input value on linear scale
Quarter Gauge Display input value on ninety degree scale
Lamp Display color that reflects input value
Knob Set value on dial to tune parameters or variables
Slider Set value on sliding scale to tune parameters or variables
Push Button Set value of tunable parameter or variable by holding button
Rotary Switch Set value on dial switch to tune parameters or variables
Rocker Switch Set on/off values to tune parameters or variables
Slider Switch Set on/off values to tune parameters or variables
Toggle Switch Set on/off values to tune parameters or variables

Functions

find Access and display values of simulation results
get Access and display values of simulation results
who List names of top-level data logging objects in Simulink data log
Simulink.sdi.addToRun Add simulation data to existing run
Simulink.sdi.clear Clear all data from Simulation Data Inspector
Simulink.sdi.close Close Simulation Data Inspector
Simulink.sdi.compareRuns Compare signal data between two simulation runs
Simulink.sdi.compareSignals Compare data from two signals
Simulink.sdi.copyRun Create copy of run including simulation output data
Simulink.sdi.createRun Create run in Simulation Data Inspector
Simulink.sdi.deleteRun Delete run from Simulation Data Inspector
Simulink.sdi.discardDataFromPriorSessions Delete data from prior MATLAB session
Simulink.sdi.getRun ReturnSimulink.sdi.Run object containing simulation output data
Simulink.sdi.getRunCount Return number of runs in Simulation Data Inspector
Simulink.sdi.getRunIDByIndex Return the run ID corresponding to run index
Simulink.sdi.getRunNamingRule Return run naming rule for next Simulation Data Inspector run
Simulink.sdi.getSignal Return Simulink.sdi.Signal object for signal in Simulation Data Inspector
Simulink.sdi.getSource Return repository location for storing simulation data
Simulink.sdi.hasDataFromPriorSessions Indicate if data is available from prior MATLAB session
Simulink.sdi.importDataFromPriorSessions Import data from prior MATLAB session
Simulink.sdi.isValidRunID Determine if run ID is valid
Simulink.sdi.load Load saved Simulation Data Inspector session
Simulink.sdi.refresh Refresh Simulation Data Inspector
Simulink.sdi.report Generate report from Simulation Data Inspector
Simulink.sdi.resetRunNamingRule Reset default run naming rule for next Simulation Data Inspector run
Simulink.sdi.save Save current Simulation Data Inspector session
Simulink.sdi.setRunNamingRule Specify a run naming rule
Simulink.sdi.setRunOverwrite Mark simulation run for overwrite
Simulink.sdi.view Open Simulation Data Inspector
Simulink.sdi.markSignalForStreaming Turn streaming on or off for a signal
Simulink.sdi.changeLoggedToStreamed Change signals marked for logging to streaming
Simulink.sdi.changeStreamedToLogged Change signals marked for streaming to logging

Classes

Simulink.sdi.DiffRunResult Results from comparing two simulation runs
Simulink.sdi.DiffSignalResult Results from comparing two signals
Simulink.sdi.Run Manages signal data and metadata of simulation run
Simulink.SimulationData.Dataset Create Simulink.SimulationData.Dataset object
Was this topic helpful?