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 (2020). Matrix Visualization with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/69594-matrix-visualization-with-matlab), MATLAB Central File Exchange. Retrieved .
@Hristo Zhivomirov: perhaps something these might be useful to provide distinguishable colors:
Thank you for your oppinion, I will take it into account.
I am well aware about colormaps pros and cons.
By the way, the reader could also refer to K. Moreland, “Diverging Color Maps for Scientific Visualization”, ISVC '09 Proceedings of the 5th International Symposium on Advances in Visual Computing: Part II, pp. 92-103, 2009; or A. Telea, Data Visualization: Principles and Practice, Boca Raton, CRC Press, 2015 about the topic.
In the next submission update, I may change the colormap to 'parula' one, indeed.
Let's see more users' comments...
Once again, thank you very much Stephen!
An interesting idea, ruined somewhat by using the JET colormap.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!