IRIS Toolbox Reference Manual

matrix

Insert matrix or numeric array

Syntax

P.matrix(Caption,Data,...)

Input arguments

Options

Generic options

See help on generic options in report objects.

Description

Conditional formatting

The conditional format struct (or an array of structs) specified through the 'condFormat=' option must have two fields, .test and .format.

The .test field is a text string with a Matlab expression. The expression must evaluate to a scalar true or false, and can refer to the following attributes associated with each entry in the data part of the matrix:

You can combine a number of attribues within one test, using the logical operators, e.g.

value > 0 && row > 3
value == max(rowvalues) && strcmp(rowname,'x')

The .format fields of the conditional format structure consist of LaTeX commands that will be use to typeset the corresponding entry. The reference to the entry itself is through a question mark. The entries are typeset in math mode; this for instance meanse that for bold or italic typface, you must use the \mathbf{...} and \mathit{...} commands.

In addition to standard LaTeX commands, you can use the following IRIS commands in the format strings:

You can combine multiple tests and their correponding formats in one structure; they will be all applied to each entry in the specified order.

Titles and subtitles

The input argument Caption can be either a text string, or a 1-by-2 cell array of strings. In the latter case, the first cell will be printed as a title, and the second cell will be printed as a subtitle.

To split the title or subtitle into multiple lines, use the following LaTeX commands wrapped in curly brackets: {\\} or {\\[Xpt]}, where X is the width of an extra vertical space (in points) added between the respective lines.

Example