Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Variable Table

Insert table that displays all the variables in the MATLAB workspace

Description

This component inserts a table that displays all the variables in the MATLAB® workspace.

    Tip   Find all the variables in the MATLAB workspace by typing whos at the command line.

Source Workspace

Read variables from:

  • Base workspace: Reads variables from the MATLAB workspace.

  • MAT-file: Reads variables from a binary file with a .mat extension. Use the %<VariableName> notation. For more details about this notation, see %<VariableName> Notation on the Text component reference page.

Table Title

  • Table title:

    • Automatic (Variables from MATLAB workspace): Sets the table title to the name of a MATLAB variable.

    • Custom: Specifies a custom title.

  • Table Columns:

    • Variable dimensions (MxN): Includes the size of the variable.

    • Variable memory bytes: Includes the number of bytes of memory consumed by the variable.

    • Variable class: Includes the variable class.

    • Variable value: Includes the value of the variable.

        Note:   Large variable arrays collapse to [MxN CLASS]. For example, if you have a 300-by-200 double array, it appears in the report as [300x200 DOUBLE].

Example

The following is an example of a variable table that includes size, memory bytes, and value information in the table columns.

Name

Size

Bytes

Value

aCell

1x2

238

{ [ 1 2 3 4 ] Speed (kph) }

aNumber

1x1

8

1

aString

1x11

22

Speed (kph)

aStructure

1x1

302

[struct w/ fields. Inputs, Outputs]

aVector

1x4

32

[ 1 2 3 4 ]

Insert Anything into Report?

Yes. Table.

Class

rptgen.cml_whos

Was this topic helpful?