RGB values for 2014b default colors
71 views (last 30 days)
More Answers (4)
Star Strider on 28 Oct 2014
The new default colormap is called ‘parula’. To get 8 RGB values of it, use the colormap function:
cmp = colormap(parula(8));
to return them in the ‘cmp’ variable. To get more values, change the ‘8’ to the number you want.
EvilDrW on 24 Oct 2017
you want the command "lines"...
lineColors = lines(8)
the methods above that use
seem to only give you the first 7 line colors, where the lines command allows you to specify the number of colors you want and also doesn't rely on having an active axis to get your rgb color values.