在Matlab中拟合二维曲线 [英] fitting two dimensional curves in matlab

查看:568
本文介绍了在Matlab中拟合二维曲线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于曲线拟合工具箱,有一个名为cftool的工具箱功能,可用于将曲线拟合到一维数据.二维数据有什么用吗?

解决方案

Jerry提出了两个非常好的选择.但是,如果要为模型提供更公式化的形式,还有其他选择.

当前版本的曲线拟合"工具箱允许您将曲面拟合到数据,而不仅仅是曲线.

或使用 polyfitn 之类的工具拟合二维多项式模型.

或者,如果您有模型,也可以使用非线性回归.优化工具箱将通过lsqnonlin或lsqcurvefit帮助您解决问题,这两种方法都可以适合二维(或更高版本)模型.或者,如果您有统计信息工具箱,请尝试nlinfit.

也许您可能想要一种适合径向基函数.

神经网络是拟合数据的另一种方法,因此请使用神经网络工具箱

因此,根据您的兴趣,对模型可能的形式的了解,所拥有的工具箱或可能选择下载的内容,有很多方法可以对曲面进行建模.选择模型中的一个很大因素是模型的目标.您将如何处理?它将如何使用?

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?

解决方案

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?

这篇关于在Matlab中拟合二维曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆