필터 지우기
필터 지우기

colormap variable as a function of another variable

조회 수: 1 (최근 30일)
jgillis16
jgillis16 2015년 6월 23일
댓글: Walter Roberson 2015년 6월 23일
I need to have a matching vector to define the colours, with one colour for each point, that value going from -6 to +10, but defined as cm(c) where c goes from 1 to 16, with 1 corresponding to -6 and 16 corresponding to 10.
cm is defined as:
cm = flipud(colormap(jet(16)));
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 6월 23일
-6 to +10 is 17 values, which you want to map to 16 colors. Which two values should both be mapped to the same color?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by