Pcolor plot question. gradational color change.

7 vues (au cours des 30 derniers jours)
Minsik Km
Minsik Km le 20 Août 2022
Réponse apportée : KSSV le 20 Août 2022
I have Time X ( 81 x 1 ) and Y ( 81 x 20 )
Y is a some value at the time X, with coefficient from 1 ~ 20.
when I plot (X,Y) , the result is like below figure.
Can I make a pcolor plot using a different coefficient as a Z value (1~20) ?
I want draw figure with poligonized gradational color change, not with the multiple lines

Réponses (1)

KSSV
KSSV le 20 Août 2022
x = 1:20 ;
y = TIME ; % 81x1 array
Z = Y ; % 81x20 array
pcolor(x,y,Z) ; % if required transpose Z

Catégories

En savoir plus sur Biotech and Pharmaceutical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by