Borrar filtros
Borrar filtros

How to change color bar for images function?

17 visualizaciones (últimos 30 días)
NeoBeaver
NeoBeaver el 19 de Ag. de 2016
Comentada: NeoBeaver el 20 de Ag. de 2016
Dear all:
Any one could help me with this problem:
I used the following piece of code to generate a heat map for a matrix:
clf
imagesc(full_B);
colorbar;
The color bar default look like this:
I am thinking about changing the color bar into something like rainbow.
How should I be doing it?
Thanks! Ruming

Respuesta aceptada

Image Analyst
Image Analyst el 19 de Ag. de 2016
Try this
imagesc(full_B);
colorbar;
colormap(jet(256));
or even better:
imshow(full_B, []);
colorbar;
colormap(jet(256));

Más respuestas (0)

Categorías

Más información sobre Orange en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by