Simulink.sdi.DiffSignalResult
Access signal comparison results
Description
When you compare runs or signals using the Simulation Data
Inspector, the results are returned as either a
Simulink.sdi.DiffSignalResult
object or a
Simulink.sdi.DiffRunResult
object that contains one or more
Simulink.sdi.DiffSignalResult
objects. The
DiffSignalResult
object contains the data and metadata for signal
comparison results, such as the difference signal, tolerance data, and the synchronized
signal data.
Creation
When you use the Simulation Data Inspector to compare runs or signals, you can access
signal comparison results in a Simulink.sdi.DiffSignalResult
object two ways:
By using the
Simulink.sdi.compareSignals
function to compare signals.By using the
getResultByIndex
function to accessDiffSignalResult
objects inSimulink.sdi.DiffRunResult
objects.
Properties
Examples
Alternatives
You can view and inspect comparison results using the Simulation Data Inspector UI. For more information, see Compare Simulation Data.
Version History
Introduced in R2012b