MATLAB Report Generator | ![]() ![]() |
Category
Description
The Text component inserts and formats text into your report. The text component should have the Paragraph component as its parent.
Attributes
This is the Text attribute page.
Note To view a component attribute page in the Setup File Editor, select the component in the setup file outline on the left and click on the Options tab. If the component is not in the setup file outline, you must add it to the outline first. See Building and Editing the Setup File for a discussion on how to add a component to the outline. |
%<VariableName> Notation
You can enter %<VariableName>
in this field (and in any field where the text appears blue) to include the value of a variable from the MATLAB workspace. You cannot enter more than one variable in the %
<>. If you enter an invalid variable name, then the report will contain %<VariableName>
instead of the value of the variable.
Example 1
I have a %<ObjName> and it has %<NumLeaves> leaves. The word '%<ObjName>' has %<size(ObjName)> letters.
and if ObjName='plant'
and NumLeaves=3 in the MATLAB workspace,
then the report will contain the following.
Example 2
then the report will contain the text that you get when you type help peaks
at the command line.
Insert anything into report?
Filename
![]() | Paragraph | Title Page | ![]() |