首先,我要感谢所有花时间在我身上工作的人 问题
我有两组数据(X,Y,Z)几乎相同但差别不大。我已经为每个人安装了“Poly22”表面。现在我想确定两个多项式之间的区别。
我为每个多项式都有这些值:
第一组数据: 线性模型Poly22:
SurfaceSzept26_2nd(x,y) = p00 + p10*x + p01*y + p20*x^2 + p11*x*y + p02*y^2
Coefficients (with 95% confidence bounds):
p00 = 21.72 (17.28, 26.16)
p10 = 58.6 (8.128, 109.1)
p01 = 57.52 (7.158, 107.9)
p20 = -4.133 (-327.9, 319.6)
p11 = -2.464 (-678.4, 673.5)
p02 = 4.744 (-349.1, 358.6)
第二
线性模型Poly22:
SurfaceOkt30_2nd(x,y) = p00 + p10*x + p01*y + p20*x^2 + p11*x*y + p02*y^2
Coefficients (with 95% confidence bounds):
p00 = 22.53 (18.2, 26.86)
p10 = 61.86 (12.43, 111.3)
p01 = 62.25 (12.93, 111.6)
p20 = -9 (-385.3, 367.3)
p11 = -0.5245 (-780.3, 779.3)
p02 = 11.31 (-393.5, 416.2)
我知道差分多项式的系数将是p(1st)-p(2nd)。任务是在3D中绘制差异曲面。有人可以帮帮我吗? :)
谢谢大家,祝你有愉快的一天!
答案 0 :(得分:1)
我可能会误解你的问题,但我认为你只是想这样做:
p00_3 = 21.72 - 22.53; % = -0.81
p10_3 = 58.6 - 61.86; % = -3.26
p01_3 = 57.52 - 62.25; % = -4.73
p20_3 = -4.133 - -9; % = 4.867
p11_3 = -2.464 - -0.5245; % = -1.9395
p02_3 = 4.744 - 11.31; % = -6.566
[x,y] = meshgrid(-10:0.1:10);
surf(x,...
y,...
p00 + p10*x + p01*y + p20*x.^2 + p11.*x.*y + p02*y.^2,...
'edgecolor', 'none')