Matlab等高线绘制,以contourf为例

2016-04-06 2014_2017

今天别人问我怎么matlab画等高线出现了

“The size of X must match the size of Z or the number of columns of Z.”

的错误提示。其实就是矩阵的大小搞错了。
例如:

x=[1:1:3];
y=[1:1:2];
z=[1 0 2;2 0 3];


之前出现的问题是z转置了,变成3*2的了。

Comments
Write a Comment