sldiagviewer.reportWarning

Report warning messages in Diagnostic Viewer

Description

example

output = sldiagviewer.reportWarning(Message) reports a message as warning in the diagnostic Viewer.

Examples

collapse all

Create a stage and use the reportWarning function to report a warning message in the Diagnostic Viewer for the specified model.

% Create a Stage to display all the messages

my_stage = sldiagviewer.createStage('Analysis', 'ModelName', 'vdp');

% Report a custom warning message to Diagnostic Viewer

sldiagviewer.reportWarning('This is a custom warning message.');

output =
     1ogical
      1

Input Arguments

collapse all

This message is displayed as a warning in the Diagnostic Viewer.

Example: 'This is a custom warning message.'

Output Arguments

collapse all

Shows whether the message was displayed successfully.

Introduced in R2014a