通常有必要用2维拟合或计算函数。使用polyFit2D.m将二维多项式拟合到数据,使用polyVal2D.m对其求值。享乐
以下详细说明了这些功能:
http://poquitopicante.blogspot.com/2013/03/horners-method-in-2d.html
它们也位于Github上的Gist中,如下所示:
https://gist.github.com/mikofski/5159267
引用为
马克·米科夫斯基(2021年)。polyVal2D和polyFit2D(//www.tianjin-qmedu.com/matlabcentral/fileexchange/41097-polyval2d-and-polyfit2d),MATLAB中央文件交换。恢复.