How do you plot a circular colour map for just one variable?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have just one variable, refractive index, that i want to plot on a circular colour map. (see attached photo for an example of what im trying to do).
댓글 수: 0
답변 (1개)
KSSV
2022년 6월 14일
Z = randi(20,25) ;
[m,n] = size(Z) ;
r = linspace(0,1,n) ;
th = linspace(0,2*pi,m) ;
[R,T] = meshgrid(r,th) ;
X = R.*cos(T) ;
Y = R.*sin(T) ;
pcolor(X,Y,Z)
axis equal
colormap(gray)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Colormaps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!