필터 지우기
필터 지우기

How to plot gradient bar in MATLAB

조회 수: 3 (최근 30일)
Kim
Kim 2017년 2월 28일
답변: KSSV 2017년 2월 28일
How to draw the above gradient bar?

채택된 답변

KSSV
KSSV 2017년 2월 28일
x = [0.5 1 1.5] ;
y = linspace(0,200) ;
[X,Y] = meshgrid(x,y) ;
Z = X+Y ;
figure(1)
surf(X,Y,Z) ;
colormap(jet) ;
shading interp ;
view(2)
x = [0.5 1 1.5] ;
y = linspace(0,200) ;
y(y>80 & y<120) = NaN ;
[X,Y] = meshgrid(x,y) ;
Z = X+Y ;
figure(2)
surf(X,Y,Z) ;
colormap(jet) ;
shading interp ;
view(2)

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by