IRIS Toolbox Reference Manual

## plotmat

Visualise 2D matrix

#### Syntax

    [HPos,HNeg,HNanInf,HMax] = grfun.plotmat(X,...)

#### Short-cut syntax

    [HPos,HNeg,HNanInf,HMax] = plotmat(X,...)

#### Input arguments

- `X` [ numeric ] - 2D matrix that will be visualised; ND matrices will be unfolded in 2nd dimension before plotting.

#### Output arguments

- `HPos` [ numeric ] - Handles to discs displaying non-negative entries.

- `HNeg` [ numeric ] - Handles to discs displeying negative entries.

- `HNanInf` [ numeric ] - Handles to NaN or Inf marks.

- `HMax` [ numeric ] - Handles to circles displaying maximum value.

#### Options

- `'colNames='` [ char | cellstr | empty | `'auto'` ] - Names that will be given to the columns of the matrix.

- `'rowNames='` [ char | cellstr | empty | `'auto'` ] - Names that will be give to the row of the matrix.

- `'maxCircle='` [ `true` | `false` ] - If `true`,display a circle denoting the maximum value around each entry.

- `'nanInf='` [ char | `X` ] - Appearance of `NaN` and `Inf` entries.

- `'showDiag='` [ `true` | `false` ] - If `false`, hide the entries on the main diagonal by setting them to `NaN`.

- `'scale='` [ numeric | `'auto'` ] - Maximum value (positive) relative to which all matrix entries will be scaled; by default the scale is the maximum entry in the input matrix, `max(max(abs(X(isfinite(X))))`.

#### Description

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.