Hello, good evening.
I would like to know how I cant paint a random matrix in matplot with values ranging from 0.1. Matplot always will paint it with black because the lower values (0.3, 0.45…)
Hello,
Matplot input values are indices in the current colormap, hence to represent values between 0 and 1 you have to multiply actual values by the current number of colors available in the colormap, e.g.
a = rand(50,50);
N = 128;
gcf().color_map = jetcolormap(N);
Matplot(ceil(a*N))
1 Like
Hello. Thank you. Very nice solution.
1 Like