MATLAB Report Generator | ![]() ![]() |
Putting Text into a Table Cell
You can type text in a table cell in the Setup File Editor. The text appears in the report as long as you are in the non-split mode.
To enter text in a cell, double-click on the cell. When a gray box appears in the cell, you are in the edit mode. To exit the edit mode, press the Esc
key.
In the edit mode, %<PropertyName>
appears in the gray box. If you type text outside the %<>
, then it will appear as text in the report. If you type text inside the %<>
, it should be a valid property name. If you type an invalid property name, then that property name will appear in the report without a property value.
For example, to display the following report text in table cell below the figure, Membrane Data:
If the table is in the split mode, then the following table cells appear in the report.
Editing the Table Title
The table has a title that you can edit. The title of the table can contain properties and text. The title is always in the non-split mode.
If the table has a title, it will appear in the List of Tables. Some stylesheets offer a list of tables. For a list of stylesheets that offer this option, see Report Format and Stylesheets.
To enter title text, double click on the title, and enter text in the gray box.
To enter a property, follow the steps described in the next section, Adding a Property.
Adding, Replacing, and Deleting Properties to a Table Cell
The following sections discuss how to add, replace, and delete properties to a table cell.
Adding a Property
To add a Handle Graphics property to a table cell in the Setup File Editor, follow these steps:
If you know the name of the property, you can also type the property name in the cell. See Putting Text into a Table Cell in the previous section.
Note The attribute page in the Setup File Editor does not display text wrapping inside a cell, but when the report is created, the text inside a cell will wrap. |
Replacing or Deleting Properties
In the non-split mode, you can replace a property in a table cell in the Setup File Editor by following the instructions in Putting Text into a Table Cell. You can delete a property by backspacing over it.
To replace a Handle Graphics property in a cell when the table is in split mode, follow the instructions in Adding a Property. You cannot use these steps to delete a Handle Graphics property in a cell when the table is in non-split mode, since a cell can have more than one property name/property value pair.
Displaying or Hiding Table and Cell Borders
You can toggle the table and cell borders on and off in the Property Table by using the context menu.
To toggle a cell border on and off, place your cursor in the desired cell and click the right mouse button to invoke the context menu. Choose Cell borders and then select Top, Bottom, Right, or Left
to toggle the desired border on or off.
To toggle the border of the table on and off, use the context menu. Place your cursor over the table and click on the right mouse button to invoke the context menu. Then choose Table frame to toggle the table border on or off.
Adding and Deleting Columns and Rows
To add or delete a column or row, select a cell, and then click on one of the following four buttons.
You cannot delete a row or column when it is the only row or column in the table.
Press this button: |
To do this: |
![]() |
Add column (added to the left of the selected column) |
![]() |
Delete selected column |
![]() |
Add row (added above the selected row) |
![]() |
Delete selected row |
Resizing Columns
To resize the column width, click and drag the vertical border between cells.
Zooming and Scrolling
While you are editing the table in the setup file, you can zoom in to and out of the table with the zoom buttons, located to the left of the horizontal scroll bar.
You can scroll vertically and horizontally with the corresponding scroll bars around the table.
Press this button: |
To do this: |
![]() |
Zoom in |
![]() |
Zoom out |
Property Table Summary
This completes the discussion of the Property Table component. This section showed you how to edit the Handle Graphics Figure Property Table attribute page to insert a property name/property value table in your report.
This section discussed how to:
![]() | Selecting a Table | Building and Editing the Setup File | ![]() |