# dispMatrixIm

## PURPOSE

Display a Matrix with non-negative entries in image form.

## SYNOPSIS

function dispMatrixIm( M, varargin )

## DESCRIPTION

     Display a Matrix with non-negative entries in image form.

     USAGE
      dispMatrixIm( M, [varargin] )

     INPUTS
      M          - [m x n] arbitrary matrix with non-negative entries
      varargin   - additional params (struct or name/value pairs)
       .fStr       - ['%1.2f'] format for each element
       .invert     - [0] if 1 display large values as dark
       .show0      - [1] if false don't display values exactly equal to 0
       .maxM       - [] maximum possible value im M (defines display range)
       .maxLen     - [inf] maximum number of chars to display per element
       .pvPairs    - [{'FontSize',20}] parameter / value list for text.m

     OUTPUTS

     EXAMPLE
      figure(1); dispMatrixIm(round(rand(5)*100),'fStr','%d','maxM',100)
      figure(2); dispMatrixIm(rand(3,5),'fStr','%0.3f','invert',1)
      imLabel({'a','b','c'},'left',0,{'FontSize',20});
      imLabel({'1','2','3','4','5'},'bottom',0,{'FontSize',20});

     See also imLabel, confMatrixShow

     Piotr's Image&Video Toolbox      Version 2.50
     Copyright 2010 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Lesser GPL [see external/lgpl.txt]

## CROSS-REFERENCE INFORMATION

This function calls:

- getPrmDflt Helper to set default values (if not already set) of parameter struct.

This function is called by:

- confMatrixShow Used to display a confusion matrix.