Pcolor Error: Matrix Dimensions Must Agree

5 ビュー (過去 30 日間)
aminajnjo
aminajnjo 2021 年 12 月 1 日
回答済み: Walter Roberson 2021 年 12 月 1 日
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!

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 12 月 1 日
pcolor takes x then y. x corresponds to columns. You have 13 columns so your x needs to be length 13

Community Treasure Hunt

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

Start Hunting!

Translated by