필터 지우기
필터 지우기

Getting N colors using imagesc

조회 수: 7 (최근 30일)
Luca Cerone
Luca Cerone 2012년 6월 26일
Dear all, for one of my project I have to display the values of some matrices. These matrices are made up of integers number from 1 to N (~700). I have displayed these matrices using imagesc, but my feeling is that only 64 colors are displayed so that I actually lose information about what is going on. So my question is: how can I get imagesc (or another function) to show all the N colors so that the figure looks "smoother" (both on screen and on file?). Should I use some special renderer? (I am using painters now)
Thanks in advance for your help, Cheers, Luca

채택된 답변

Walter Roberson
Walter Roberson 2012년 6월 26일
Possibly the colormap you are using only has 64 colors by default.
When you are loading a colormap, you give its name; the name of the colormap is really a function, and the function allows an optional argument that indicates the number of entries to generate.
For example, instead of saying
colormap(hot)
you can say
colormap(hot(700))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Orange에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by