Colour plot using single x, y and multiple z values

2 Ansichten (letzte 30 Tage)
aa
aa am 20 Aug. 2020
Bearbeitet: KSSV am 22 Aug. 2020
Hi everyone,
I have data with single x-axis, singel y-axis and multiple z-axis. I want to plot the values of z againts x-y in colour map.
my simple data set is attached (first coloumn is x-axis, 2nd column is y-axis and rest of the colymns are z-axis) here along with the required output plot.

Antworten (1)

KSSV
KSSV am 20 Aug. 2020
num = xlsread("data.xlsx") ;
x = num(:,1) ;
y = num(:,2) ;
Z = num(:,3:end) ;
pcolor(x,y,Z) ;
shading interp ;
colorbar
  2 Kommentare
aa
aa am 22 Aug. 2020
Thank you. This works very work and serve the purpose.
KSSV
KSSV am 22 Aug. 2020
Bearbeitet: KSSV am 22 Aug. 2020
Thank you is accepting the answer..

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Colormaps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by