User`s guide

Create Callback Functions and Results
25-39
Argument I/O Type Description
result Output MATLAB string that supports Model Advisor
Formatting API calls or embedded HTML tags for text
formatting.
For code examples see:
“Basic Check with Pass/Fail Status” on page 25-58
“Check With Subchecks and Actions” on page 25-60
“Informational Check Callback Function” on page 25-56
Detailed Check Callback Function
Use the detailed check callback function to return and organize results as strings in a
layered, hierarchical fashion. The function provides two output arguments so you can
associate text descriptions with one or more paragraphs of detailed information. The
keyword for the detailed callback function is StyleTwo. The check definition requires
this keyword (see “Define Custom Checks” on page 25-30).
The detailed callback function takes the following arguments.
Argument I/O Type Description
system Input Path to the model or system analyzed by
the Model Advisor.
ResultDescription Output Cell array of MATLAB strings that
supports Model Advisor Formatting
API calls or embedded HTML tags for
text formatting. The Model Advisor
concatenates the ResultDescription
string with the corresponding array of
ResultDetails strings.
ResultDetails Output Cell array of cell arrays, each of which
contains one or more strings.
Note: The ResultDetails cell array must be the same length as the
ResultDescription cell array.