sldiagviewer.Comparator.compare
Description
returns a structure comparison
= sldiagviewer.Comparator.compare(diagMsgStage1
,diagMsgStage2
)comparison
that contains the details of diagnostics
that are added or removed in diagMsgStage2
as compared to
diagMsgStage1
. Both diagMsgStage1
and
diagMsgStage2
must contain diagnostic details generated from two
model operations of the same type. For example, diagnostics from a simulation operation must
be compared with diagnostics from another simulation operation.
Examples
Input Arguments
Output Arguments
Alternatives
You can compare the diagnostics using the Comparator available in the Diagnostic Viewer. For more information, see Compare Diagnostic Messages Between Model Simulations.
Version History
Introduced in R2025a
See Also
Tools
Functions
getDiagnostics
|delete
|sldiagviewer.DiagnosticReceiver.saveBaseline
|sldiagviewer.Comparator.compareWithBaseline
|sldiagviewer.Comparator.convertToJson
|sldiagviewer.Comparator.displayResult