matlab无法画surf图
程序代码如下:[x,y]=meshgrid([-2:.4:2]);Z=x.*exp(-x.^2-y.^2);fh=figure('position',[300,150,5...
程序代码如下:
[x,y]=meshgrid([-2:.4:2]);
Z=x.*exp(-x.^2-y.^2);
fh=figure('position',[300,150,500,500],'color','w');
ah=axes('color',[.8 .8 .8],'XTick',[-2 -1 0 1 2],'YTick',[-2 -1 0 1 2]);
sh=surf('XData',x,'YData',y,'ZData',Z,...
'FaceColor',get(ah,'color')+.1,...
'EdgeColor','k','Marker','o',...
'MarkertFacecolor',[.5 1 .85]);
错误出在sh那一句,错误提示如下:
Invalid property found.
Object Name : surface
Property Name : 'MarkertFacecolor'.
Error in graph3d.surfaceplot>localConstructor (line 136)
h = graph3d.surfaceplot(argin{:});
Error in graph3d.surfaceplot (line 7)
h = localConstructor(varargin{:});
Error in surf (line 98)
hh =
double(graph3d.surfaceplot(args{:},'parent',parax));
Error in twelve_1 (line 5)
sh=surf('XData',x,'YData',y,'ZData',Z,...
初学matlab,求解答,不胜感激! 展开
[x,y]=meshgrid([-2:.4:2]);
Z=x.*exp(-x.^2-y.^2);
fh=figure('position',[300,150,500,500],'color','w');
ah=axes('color',[.8 .8 .8],'XTick',[-2 -1 0 1 2],'YTick',[-2 -1 0 1 2]);
sh=surf('XData',x,'YData',y,'ZData',Z,...
'FaceColor',get(ah,'color')+.1,...
'EdgeColor','k','Marker','o',...
'MarkertFacecolor',[.5 1 .85]);
错误出在sh那一句,错误提示如下:
Invalid property found.
Object Name : surface
Property Name : 'MarkertFacecolor'.
Error in graph3d.surfaceplot>localConstructor (line 136)
h = graph3d.surfaceplot(argin{:});
Error in graph3d.surfaceplot (line 7)
h = localConstructor(varargin{:});
Error in surf (line 98)
hh =
double(graph3d.surfaceplot(args{:},'parent',parax));
Error in twelve_1 (line 5)
sh=surf('XData',x,'YData',y,'ZData',Z,...
初学matlab,求解答,不胜感激! 展开
1个回答
东莞大凡
2024-08-07 广告
2024-08-07 广告
OpenCV标定板是东莞市大凡光学科技有限公司在相机标定中常用的工具。它通常由黑白格点按一定规则排列在平面上组成,如棋盘格或圆形格等。在相机标定时,将标定板置于不同位置和姿态下拍摄图像,利用OpenCV库中的函数检测标定板上的角点或圆心,进...
点击进入详情页
本回答由东莞大凡提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询