3D Plot Color Map Gradation

5 ビュー (過去 30 日間)
Dion Akmal
Dion Akmal 2021 年 4 月 17 日
編集済み: G A 2021 年 4 月 17 日
can somebody help me to make a 3D plot color like this.

採用された回答

G A
G A 2021 年 4 月 17 日
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 件)

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by