Visualize matrix by a heatmap

Version 1.0.0.0 (5.78 KB) by zhang
PCOLORMAT allows you to visualize the matrix with color gradient
289 Downloads
Updated 13 May 2015

View License

% PCOLORMAT allows you to visualize the matrix with color gradient
%
% USAGE:
%
% pcolorMat(mat,ncolor,ndigits)
%
% INPUT:
% - mat: The matrix you want to visualize
% - ncolor: number of color gradient
% - ndigits: number of decimal digits shown in the figure.
%
% OUTPUT:
%
% EXAMPLES:
% pcolorMat(rand(4,4))
% pcolorMat(rand(4,4),4)
%
% Copyright 2015. Zhang (Frank) Cheng (zhangc518@gmail.com
% v:1.0 22 May 2015. Initial release.
%
% Dependence:
% colorGradient.m: http://www.mathworks.com/matlabcentral/fileexchange/31524-colorgradient--generate-custom-linear-colormaps/content/colorGradient.m

Cite As

zhang (2026). Visualize matrix by a heatmap (https://www.mathworks.com/matlabcentral/fileexchange/50835-visualize-matrix-by-a-heatmap), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0