I want to set up a Matlab colormap from white (min values) to green (max values) with any number of shades. I think about a colormap similiar to the summer preset but reversed and with a white edge instead of the yellow one.
Asked
Active
Viewed 502 times
1 Answers
0
c = [zeros(64,1) linspace(0,1,64)' zeros(64,1); % black to green
linspace(0,1,64)' ones(64,1) linspace(0,1,64)']; % green to white
surf(peaks);
colormap(c);

souty
- 607
- 3
- 10