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 .cmap - ['gray'] colormap for matrix (see doc colormap) 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 Computer Vision Matlab Toolbox Version 2.62 Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com] Licensed under the Simplified BSD License [see external/bsd.txt]