Simulink.sdi.getCurrentComparison
Access results from most recent comparison
Description
returns the diffRes = Simulink.sdi.getCurrentComparisonSimulink.sdi.DiffRunResult object
diffRes for the most recent comparison performed using the Simulation
Data Inspector UI or programmatic interface.
Tip
When you compare data using the Simulation Data Inspector UI, results are not
returned in the workspace. You can use the
Simulink.sdi.getCurrentComparison function to access results for
comparisons performed using the Simulation Data Inspector UI. When you compare data
using the Simulink.sdi.compareRuns or Simulink.sdi.compareSignals functions, the function returns the data in a
Simulink.sdi.DiffRunResult object or a
Simulink.sdi.DiffSignalResult
object.
Examples
Output Arguments
Version History
Introduced in R2020a