In the process of updating all my old scripts to work with Matlab R2014b, I've found that sometimes I want to generate the new default colormap while using R2012b. This function returns a blueish-greenish-orangey-yellowish color map which mimics, but does not exactly match the default parula color map introduced in Matlab R2014b.
Syntax and Description:
map = paruly(n) returns an n-by-3 matrix containing a parula-like colormap. If n is not specified, a value of 64 is used.
Chad Greene (2021). paruly (https://www.mathworks.com/matlabcentral/fileexchange/48426-paruly), MATLAB Central File Exchange. Retrieved .
Inspired by: Perceptually improved colormaps, cbrewer : colorbrewer schemes for Matlab, Beautiful and distinguishable line colors + colormap, CubeHelix Colormap Generator: Beautiful and Versatile!, ColorBrewer: Attractive and Distinctive Colormaps, rgbmap color maps
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Thanks!
Great! I was looking to use the parula colorscale with R2012b. Work as expected.