通常有必要对二维函数进行拟合或求值。使用polyFit2D。m拟合二维多项式到数据和polyVal2D。M来求值。乐趣!
这些功能在这里详细解释:
http://poquitopicante.blogspot.com/2013/03/horners-method-in-2d.html
它们也在Github上的Gist中:
https://gist.github.com/mikofski/5159267
引用作为
马克Mikofski(2021)。polyVal2D和polyFit2D(//www.tatmou.com/matlabcentral/fileexchange/41097-polyval2d-and-polyfit2d), MATLAB中央文件交换。检索.