sldiagviewer.DiagnosticReceiver.saveBaseline
Description
sldiagviewer.DiagnosticReceiver.saveBaseline(
saves the diagnostic details baselinePath,diagMsg)diagMsg generated during a model operation
as a baseline file baselinePath in JSON format. You can use the saved
baseline file to compare diagnostic details with the diagnostic details from subsequent
model operations in the same MATLAB® session, across different sessions, or even across different MATLAB versions. To get the diagnostic details diagMsg of a
model operation use the getDiagnostics function.
Examples
Input Arguments
Alternatives
You can save a baseline 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.Comparator.compare|sldiagviewer.Comparator.compareWithBaseline|sldiagviewer.Comparator.convertToJson|sldiagviewer.Comparator.displayResult