Pcolor Plot returning error Color data input must be a matrix.
29 views (last 30 days)
Show older comments
I keep getting the above error with my code, i am trying to use the pcolor funtion to plot cell dominance, from z which is a 546x1 double.
x1 = 1:26;
y1 = 1:21;
[X1,Y1] = meshgrid(x1,y1);
z = Ind(:,1);
i = pcolor(x1, y1, z);
0 Comments
See Also
Categories
Find more on Geographic 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!