contourfを用いた塗りつぶし等高線図の重ねがきについて
Afficher commentaires plus anciens
contourfを用いたイメージング画像の重ねがきをしようと考えましたが、データごとにカラーマップを変更する方法がわかりません。
例えばx1,x2ともに8×8のイメージングデータであり、それぞれ赤、緑にしたいとき
map1=[1,0,0;0.9,0,0];map2=[0,1,0;0,0.9,0];
contourf(x1,'LineStyle','none');alpha(.001);colormap(map1);hold on
contourf(x2,'LineStyle','none');alpha(.001);colormap(map2);
これだとx2だけでなくx1も緑色になってしまいます。x1を赤、x2を緑に塗りわける方法はありますでしょうか。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 等高線図 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!