Add Content to Print Frame Cells

Types of Content

You can add text or variables, or both, to a cell.

You must add a Block Diagram variable to one of the cells.

For details about the types of content, see:

Add Content to Cells

  1. Select the cell that you want to add content to.

  2. From the list, select the type of content that you want to add.

  3. Click Add.

    The type of content that you added appears in the cell.


    If you click Add and nothing happens, it might be because you did not select a cell first.

  4. If you add text, select the edit box and type in the text. For details, see Text.


    To make it easier to read and edit the content that you add, you can click the Zoom in + button.

Include Multiple Entries in a Cell

  1. Select a cell that has a content entry.

  2. Add another content type item from the list.

    The new entry is added after the last entry in that cell.

You can also add descriptive text to any of the variable entries without using the Text item.

  1. Double-click in the cell.

  2. Type text in the edit box before or after the entry.

  3. To end editing mode, click outside of the cell.


You cannot include multiple entries or text in the cell that contains the Block Diagram variable. %<blockdiagram> must be the only content in that cell.

Block Diagram

Use the Block Diagram variable to indicate the cell in which to print the block diagram. Every print frame must include one Block Diagram variable. If you do not specify a Block Diagram in one of the cells, you cannot save the print frame and cannot print a block diagram with it.

Do not add any other content in a cell that contains a Block Diagram variable.


In addition to the Block Diagram variable, you can add other variables, such as the current date, to cells. Simulink® supplies variable content at the time of printing.

Variable entries include:

  • Block Diagram — Add this variable in the cell in which you want the block diagram to print. For details, see Block Diagram.

  • Date — The date that the block diagram and print frame are printed, in dd-mmm-yyyy format.

  • Time — The time that the block diagram and print frame are printed, in hh:mm format.

  • Page Number — The page of the block diagram being printed.

  • Total Pages — The total number of pages being printed for the block diagram, which depends on the printing options specified.

  • System Name — The name of the block diagram being printed.

  • Full System Name — The name of the block diagram being printed, including its position from the root system through the current system, for example, engine/Throttle & Manifold.

  • File Name — The file name of the block diagram, for example, sldemo_engine.mdl.

  • Full File Name — The full path and file name for the block diagram, for example, \\matlab\toolbox\simulink\simdemos\automotive\sldemo_engine.mdl.

When you enter a variable, the cell displays the type of content in brackets, <>, preceded by a percent sign, %. For example, if you add a Page Number variable, it appears as %<page>.


Do not edit the text of a variable entry, because then the variable content does not print. For example, if you accidentally remove the % from the %<page> entry, the text <page> prints, instead of the actual page number.


For Text content, type the text that you want to include in that cell (for example, the name of your organization). To type additional text on a new line, press the Enter key. When you are finished editing, click outside of the edit box.

You can copy and paste text from another document into a cell. Any formatting of the copied text is lost.

To type special characters (for example, superscripts and subscripts, Greek letters, and mathematical symbols), use embedded TeX sequences. For a list of allowable sequences, see the text command String property (in Text Properties).

Format Content in Cells

You can align cell contents using the left, center, and right alignment buttons. (Block diagrams are always center aligned.)

You can change font properties, such as size or style (for example, italics or bold). To change font properties, select the cell, then right-click the contents and use the context menu to format the text.

Related Examples

More About

Was this topic helpful?