急求MATLAB高手解决
[x,y,z]=meshgrid(0.1:0.5:100);c=2*0.00231/2/pi/2./(0.12*x).*exp(-z.^2./(2*(0.12*x).^2...
[x,y,z]=meshgrid(0.1:0.5:100);
c=2*0.00231/2/pi/2./(0.12*x).*exp(-z.^2./(2*(0.12*x).^2)).*exp(-y.^2/2/0.0256);
surf(x,y,z,c)
??? CData must be an M-by-N matrix or M-by-N-by-3 array
Error in ==> graph3d.surfaceplot.surfaceplot>localConstructor at 136
h = graph3d.surfaceplot(argin{:});
Error in ==> graph3d.surfaceplot.surfaceplot at 7
h = localConstructor(varargin{:});
Error in ==> surf at 101
hh = double(graph3d.surfaceplot(args{:},'parent',parax));
这是什么原因?谢谢了 展开
c=2*0.00231/2/pi/2./(0.12*x).*exp(-z.^2./(2*(0.12*x).^2)).*exp(-y.^2/2/0.0256);
surf(x,y,z,c)
??? CData must be an M-by-N matrix or M-by-N-by-3 array
Error in ==> graph3d.surfaceplot.surfaceplot>localConstructor at 136
h = graph3d.surfaceplot(argin{:});
Error in ==> graph3d.surfaceplot.surfaceplot at 7
h = localConstructor(varargin{:});
Error in ==> surf at 101
hh = double(graph3d.surfaceplot(args{:},'parent',parax));
这是什么原因?谢谢了 展开
3个回答
展开全部
surf中C项只能是n*m或n*m*3维矩阵!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
CData must be an M-by-N matrix or M-by-N-by-3 array
CData要是M*N矩阵
CData要是M*N矩阵
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你把数据发出来,否则有点难解决啊。
??? CData must be an M-by-N matrix or M-by-N-by-3 array
CData要是M*N矩阵
??? CData must be an M-by-N matrix or M-by-N-by-3 array
CData要是M*N矩阵
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询