채택된 답변

G A
G A 2021년 4월 17일

0 개 추천

Try this:
cmp=colormap(turbo(256));
caxis([-0.5,0.5]);
cmp1=cmp;
cmp1(1:128,:)=flipud(cmp1(129:256,:));
colormap(cmp1);
colorbar

댓글 수: 2

Dion Akmal
Dion Akmal 2021년 4월 17일
what is the meaning of turbo?, the error said that turbo is unrecognize function or variable
G A
G A 2021년 4월 17일
편집: G A 2021년 4월 17일
turbo is the name of the predefined colormap, it may be introduced from r2020a
Use instead parula , jet, hsv or any other from the list as:
cmp=colormap(parula(256));
see
doc colormap
Also you can change limits:
caxis([-30,30]);

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Color and Styling에 대해 자세히 알아보기

태그

질문:

2021년 4월 17일

편집:

G A
2021년 4월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by