How to create color palette in MATLAB?

1

How do I make a color palette in MATLAB? I just want the palette, as in the image, not graphics or things like that ....

    
asked by anonymous 24.02.2015 / 20:21

1 answer

2

As commented in your question, it would be good if you have tried something, or have brought options, that there are several. Go some tips for you to develop your work, anything you return the code if you can not do it. To do this I know three ways:

  • Create a figure, place the color pallete horizontally and hide the figure. Then you edit the title and choose the color setting you want.
  • Use the FileExchange cbrewer, very good for creating what you want, and it's what I use today.
  • Also available on FileExchange (I personally like the previous one) ColorBrewer also allows you to create many custom colormaps.
  • A fourth option is to make your code with what matlab has available that is not small and is not difficult if you can not get the code that we help. Links below:

    Working with colormap

    ColorBrewer

    cbrewer

        
    25.02.2015 / 01:39