colorbarの変更に関して
Ältere Kommentare anzeigen
NDVIでよく見かけるこのような図を作りたいのですが、colorbarの設定にこのような配色はないのですが、どうすればいいですか。

Akzeptierte Antwort
Weitere Antworten (1)
Kojiro Saito
am 21 Jan. 2022
ただ、RGBを設定して独自のカラーマップを作ることができます。例えば赤色→黄色→緑色を256刻みで表すようなカラーマップを作るにはこんな感じです。
redColor = (255:-1:0)' / 255;
blueColor = zeros(1, 256)' / 255;
greenColor = (0:255)' / 255;
colormap([redColor greenColor blueColor])
1 Kommentar
宗樹 岡本
am 22 Jan. 2022
Kategorien
Mehr zu カラーマップ finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
