Cannot showing multiple color using pcolor and different cmap

2 Ansichten (letzte 30 Tage)
Ashvin Hamzah Driwantara
Ashvin Hamzah Driwantara am 24 Dez. 2016
Beantwortet: KSSV am 26 Dez. 2016
I want to show 2 variables : smoker and smokerw in different color using pcolor and two different cmap. I want to show smokerw in red color (hsv(1)), and show smoker in blue color (jet(1))...
I place code like this :
if true
pcolor(X,Y, smokerw');
hold on
pcolor(X,Y, smoker');
cmap1 = hsv(1);
cmap2 = jet(1));
cmap = [cmap1;cmap2];
colormap(cmap);
end
The result show both smoker and smokerw in red color...
I want to show smoker in blue, and smokerw in red...
Someone please help me, thank you...

Antworten (1)

KSSV
KSSV am 26 Dez. 2016

Kategorien

Mehr zu Orange finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by