Pcolor Error: Matrix Dimensions Must Agree

15 views (last 30 days)
I'm trying to plot the following variables using the pcolor(x,y,c) function:
t2 = 1x940 (x)
y = 1x13 (y)
d2 = 940x13 (c)
pcolor(t2, y, d2)
Thanks in advance!

Answers (1)

Walter Roberson
Walter Roberson on 1 Dec 2021
pcolor takes x then y. x corresponds to columns. You have 13 columns so your x needs to be length 13

Categories

Find more on Contour Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!