How to create color palette in MATLAB?

Asked

Viewed 1,108 times

1

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

Paleta RGB

  • 2

    Hello David. Have you tried any strategy? Have you studied any material available on the web? Normally, the Stackoverflow community takes better questions that demonstrate a certain amount of prior effort. I suggest adding this kind of information to the question: I need this, I’ve tried this and this, but the result is not cool for that other.

1 answer

2

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

  1. Create a picture, place Colour Pallete horizontally and hide the picture. There you edit the title and choose the color setting as you want.
  2. Use Fileexchange cbrewer, very good for creating what you want, and that’s what I currently use.
  3. Also available in Fileexchange (personally like the previous one) Colorbrewer also makes it possible to create many custom colormaps.

A fourth option is to make your code with what Matlab has available that is not little and is not difficult, if you can not put the code that we help. Links below:

Work with colormap

Colorbrewer

inserir a descrição da imagem aqui

cbrewer

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.