User`s guide

7 Create Custom Components
7-18
compDesc = 'An example component';
Change a Component Display Name
The display name in getName.m is the same value as the Display name field in the
Report Explorer. The following example shows how to edit the compName string in this
file to change a component's display name to Example Component:
compName = 'Example Component';
Change a Component Category Name
The category name in getType.m is the same value as the Category name field in the
Report Explorer. The following example shows how to edit the compCategory string in
this file to change a component's category name to Custom Components:
compCategory = 'Custom Components';
Register Components
You can register components in the Report Explorer using rptcomps2.xml. This file also
helps build the list of available components.
The content of this file must be consistent with the values in the getName.m and
getType.m files. If you have changed values in either of these files, you must also
change their values in rptcomps2.xml. You must restart the MATLAB software session
for the Report Explorer to display new information.
Display Component Help in the MATLAB Help Browser
The viewHelp.m file displays a help file for the component within the MATLAB Help
browser. To display the help file, highlight the name of the component in the Report
Explorer and click Help.