通过Matlab中的数据点拟合指数曲线 [英] Fit exponential curve through data points in Matlab

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

问题描述

有了指数衰减的数据,我想拟合一条曲线.如何在Matlab中做到这一点?

Having data of an exponential decay available, I would like to fit a curve through it. How can I do that in Matlab?

推荐答案

尝试一下:

ft=fittype('exp1');
cf=fit(time,data,ft)

这是当timedata是您的数据向量时;时间是自变量,数据是因变量.

This is when time and data are your data vectors; time is the independent variable and data is the dependent variable.

这将为您提供指数衰减曲线的系数.

This will give you the coefficients of the exponential decay curve.

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

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