Report Generator
  Go to Component
    Search    Help Desk 
Cell Table

Component

Cell Table

Category

Formatting

Description

The Cell Table component converts a rectangular cell array into a table and inserts the table into the report.

Attributes

This is the Cell Table attribute page.

Note:
To view the 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 Chapter 4 for a discussion on how to add a component to the outline.

Create table from MxN cell array with workspace variable name
Enter the name of the cell array that will be used to create the cell table.

Formatting Options

Table title
Enter the title of your table. If you have a title for a table, it is included in the List of Tables if the stylesheet you chose in the Report Options attribute page supports it. See "Report Format and Stylesheets" in Chapter 2 to find stylesheets that have a List of Tables.
Cell alignment
Select a cell alignment option (left, center, right or double justified).
Table grid lines
Select this option if you want to have grid lines in your table. Grid lines create borders between the fields.
Table spans page width
Select this option if you want the table to have the same width as the page on which it appears.
Rotate table 90 degrees
Select this option to rotate the table 90 degrees.

Header/Footer Options

Designating a row as a header or footer row causes the contents of the row to be displayed in boldface.

Number of header rows
Enter the number of header rows (from the top): 0=none, 1= 1 row from top, 2 = two rows from the top, etc.
No footer
If you do not want a footer, select No footer.
Footer is the same as header
Select this option to create a footer that is identical to the header.
Last N rows of cell array are footer
If you want to select a footer that is different from your header, then select Last N rows of cell array are footer and enter the number of footer rows (from the bottom) in the corresponding field: 0 = none, 1 = one row from bottom, 2 = two rows from the bottom, etc.

Example

For example, if you have the following cell array in the MATLAB workspace:

then the resulting cell table has the following appearance.

foo
bar
3
5

Note that in this example, the table has no headers or footers and no title. The table does have grid lines.

Insert anything into report?

Yes. Table.

Filename

cfrcelltable



[ Previous | Help Desk | Next ]