Access signal comparison results
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.
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 access DiffSignalResult
objects in Simulink.sdi.DiffRunResult
objects.
You can view and inspect comparison results using the Simulation Data Inspector UI. For more information, see Compare Simulation Data.
getResultByIndex
| Simulink.sdi.compareRuns
| Simulink.sdi.compareSignals
| Simulink.sdi.DiffRunResult