When drawing in MATLAB, if the data distribution of the matrix is very uneven, the visual effect of the drawn window is very poor. This function implements adaptive color mapping, so that regardless of the matrix data distribution, a 3D image with good visual effect can be drawn.
Run the "matlab_auto_colormap" script, while the "test_mat.mat" is a mat for testing.