Pcolor Error: Matrix Dimensions Must Agree
15 views (last 30 days)
Show older comments
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!
0 Comments
Answers (1)
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
0 Comments
See Also
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!