MATLAB中离散点画网格

用(4,0.0045,4.99)(5,0.00455.89)(6,0.0045,7.45)(8,0.0045,8.91)(8,0.0035,10.4)(8,0.0045,... 用(4 ,0.0045,4.99 )(5,0.0045 5.89)(6,0.0045,7.45)(8,0.0045,8.91)(8,0.0035,10.4)(8,0.0045,8.91)(8,0.0055,7.87)(8,0.0065,7.46)(8,0.0075,7.27)如何画出网格 展开
 我来答
lhmhz
高粉答主

2018-04-29 · 专注matlab等在各领域中的应用。
lhmhz
采纳数:7263 获赞数:16988

向TA提问 私信TA
展开全部

已知离散点画三维网格,可以按下列步骤来实现:

1、建立三维坐标的分向量,即

x=[。。。];y=[。。。];z=[。。。]

2、根据模型f(x,y)=a0 + a1*x + a2*y,用拟合函数regres()拟合出其拟合系数。

a 0=    4.3884;a 1=  1.0217;a 2=  -762.9873

3、将x,y平面数据网格化,[X,Y]=meshgrid(x,y),然后求出Z=f(X,Y)。最后,用mesh(X,Y,Z)绘出其网格图。

运行结果

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式