Data fitting

2 ビュー (過去 30 日間)
Arielle
Arielle 2012 年 1 月 30 日
I'm trying to plot a curve to fit a given set of population data. I am told to follow the format
P(t) = exp(a*(t - t_0)^2 + b*(t - t_0) + c*(t - t_0))
using built-in Matlab tools. I have found the basic fitting GUI offered under the figure tool bar, but nothing is of help there. Any helpful functions that anyone might want to suggest?

採用された回答

Frederic Moisy
Frederic Moisy 2012 年 1 月 30 日
This is easy with the Ezyfit toolbox: http://www.mathworks.com/matlabcentral/fileexchange/10176
Plot your data, and type showfit('P(t) = exp(a*(t - t_0)^2 + b*(t - t_0) + c*(t - t_0))')
See the doc to specify starting values for the parameters a b c and t0.
I hope this helps, F. Moisy

その他の回答 (1 件)

Andreas Goser
Andreas Goser 2012 年 1 月 30 日
As the name basic fitting suggests, it is basic. Please consider using the Curve Fitting Toolbox of your university license or maybe the Optimization Toolbox.
The Curve Fitting Toolbox allows customer equations.

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by