MATLAB Report Generator |
 |
Editing a New Component
When you create a component, the Report Generator creates an @<compfilename>
directory; in this case the created directory is @crp_randplot
.
The M-files in this directory are methods; they are intended to be used by this object only. The following are M-files in @crp_randplot
.
M-File
|
What It Does
|
crp_randplot.m
|
This M-file is the constructor; it creates the object. You can change the help in this file.
|
attribute.m
|
This M-file displays the attribute page.
|
outlinestring.m
|
This M-file returns the string that represents the component in the setup file outline when a component is added to it.
|
subsasgn.m
|
This M-file accesses fields of object outside its method. Do not edit this file.
|
subsref.m
|
This M-file accesses fields of object outside its method. Do not edit this file.
|
getinfo.m
|
This M-file is used to store information about components - it tells the Report Generator how to create a component. You can edit this file to create a new attribute.
|
execute.m
|
This M-file is the method that is called during generation time. It inserts into the report the information that is created by the component when the report is generated.
|
Method, object, and constructor are object-oriented programming concepts that are discussed in the MATLAB documentation.
| Tutorial: Editing and Running the New Component | | Editing the Execute Method |  |