fitting two dimensional curves in matlab

我与影子孤独终老i 提交于 2019-12-07 13:04:46

问题


There's a toolbox function for the curve fitting toolbox called cftool that lets you fit curves to 1-d data. Is there anything for 2-d data?


回答1:


Jerry suggested two very good choices. There are other options though, if you want a more formulaic form for the model.

The curvefitting toolbox, in the current version, allows you to fit surfaces to data, not just curves.

Or fit a 2-d polynomial model, using a tool like polyfitn.

Or you can use a nonlinear regression, if you have a model in mind. The optimization toolbox will help you there, with lsqnonlin or lsqcurvefit, either of which can fit 2-d (or higher) models. Or, if you have the stats toolbox, then try nlinfit.

Perhaps you might like a tool to fit Radial Basis Functions.

Neural nets are another way to fit data, so use the Neural Network Toolbox

So there are many ways to model surfaces, depending on your interests, your knowledge of a likely form for the model, what toolboxes you have or what you might choose to download. A very big factor in your model choice are your goals for the model. What will you do with it? How will it be used?




回答2:


You seem to be looking for griddata. You might also want to look at gridfit.



来源:https://stackoverflow.com/questions/2963874/fitting-two-dimensional-curves-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!