The present code is a Matlab function that produces a view of a numeric matrix, where each matrix element is shown with its value and coded with color. The columns’ and rows’ numbers are placed on the x- and y-axis, respectively. The exact location and value of a given element on the matrix plot could be observed using the Data Cursor.
A few examples are given in order to clarify the usage of the function. For convenience, the input and output arguments are given in the beginning of the function.
Hristo Zhivomirov (2022). Matrix Visualization with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/69594-matrix-visualization-with-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Flip a Coin or Roll a Dice with Matlab
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!