colormap
조회 수: 12 (최근 30일)
이전 댓글 표시
Hi all,
I am using colormap command and intereseted to know what is the maximum and minimum value I can define for the size. for example in Help it says
colormap(hsv(128)): creates an hsv colormap with 128 colors
How far can I increase this value? I know 256 is ok, I even tried 1000 but I just want to know if it is logic to increase it to what ever I want. Appreciate your help S:)
댓글 수: 0
채택된 답변
Bjorn Gustavsson
2011년 5월 31일
Try - and you'll see.
댓글 수: 3
Bjorn Gustavsson
2011년 5월 31일
I honeslty have no idea. Just try and experiment and you'll see. At some point the display settings will limit the number of colours you can show on the screen, the printer will only give you just so many levels and so on, then comes the question of how many levels you and your audience can separate with your eyes. I just tried jet with some random sizes between 10 and 1e6, and on my screen I could not see much difference between jet(300) and jet(1000), with the image I was using. This might of course vary between combinations of colourmaps, displays, images and eyes. So your measure might be different than mine - thus the recommendation "Try - and you'll see".
추가 답변 (1개)
Walter Roberson
2011년 5월 31일
The minimum size you can use is 1, and the maximum size you can use is the largest array you can construct in your software (or perhaps a bit less than that due to the memory required by the routine that computes the appropriate color entries.)
참고 항목
카테고리
Help Center 및 File Exchange에서 White에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!