필터 지우기
필터 지우기

apply seperate colormaps to surface plots in a single figure

조회 수: 2 (최근 30일)
GreGG
GreGG 2012년 10월 14일
so i want to display this graph in six different ways one of which being using a different colormap besides the default ive tried heres my code..
x=-5:.5:5;
y=-5:.5:5;
[X,Y] = meshgrid(x,y);
z=sin(sqrt(X.^2+Y.^2));
subplot(3,2,1)
mesh(z)
subplot(3,2,2)
surf(z)
subplot(3,2,3)
surf(z)
shading interp
subplot(3,2,4) %%%%THIS IS THE PLOT I WANT TO HAVE A DIFFERENT COLOR MAP
surf(z)
shading interp
subplot(3,2,5)
contour(z)
subplot(3,2,6)
surfc(z)

채택된 답변

Walter Roberson
Walter Roberson 2012년 10월 14일
See the file exchange contribution "freezeColors"

추가 답변 (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