Pcolor plot question. gradational color change.

1 view (last 30 days)
Minsik Km
Minsik Km on 20 Aug 2022
Answered: KSSV on 20 Aug 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

Answers (1)

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

Community Treasure Hunt

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

Start Hunting!