Matlab中的自定义方程曲线拟合 [英] Custom equation curve fitting in Matlab

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

问题描述

我正在尝试使用Matlab查找以下等式的系数值

I am trying to use Matlab to find the values of the coeffiecients of the following equation

y=ax/((c+bx)*(a+cx+b))

我有y和x的7个数据点.如何使用曲线拟合工具箱

I have 7 data points for y and x . How can I do this using curve fitting toolbox

推荐答案

使用最小二乘拟合:

 f = fittype('a*x./((c+b*x).*(a+c*x+b))');
 [fit1,gof,fitinfo] = fit(x',y',f,'StartPoint',[1 1 1]);

尝试多个起点以确保达到全局最小值.

Try multiple start points to warrant a global minimum is reached.

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

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