3D Plot Color Map Gradation

1 Ansicht (letzte 30 Tage)
Dion Akmal
Dion Akmal am 17 Apr. 2021
Bearbeitet: G A am 17 Apr. 2021
can somebody help me to make a 3D plot color like this.

Akzeptierte Antwort

G A
G A am 17 Apr. 2021
Try this:
cmp=colormap(turbo(256));
caxis([-0.5,0.5]);
cmp1=cmp;
cmp1(1:128,:)=flipud(cmp1(129:256,:));
colormap(cmp1);
colorbar
  2 Kommentare
Dion Akmal
Dion Akmal am 17 Apr. 2021
what is the meaning of turbo?, the error said that turbo is unrecognize function or variable
G A
G A am 17 Apr. 2021
Bearbeitet: G A am 17 Apr. 2021
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]);

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Colormaps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by