フィルターのクリア

Nonlinear least square regression

2 ビュー (過去 30 日間)
ameen
ameen 2013 年 5 月 27 日
i have (x , y) data
the function between x and y is y = 0.392* (1 - (x / b1) .^ b2
i want to use nonlinear least square regression to obtain the values of b1 and b2
can any one help me with the structure of the Matlab program
thanks in advance
  1 件のコメント
Matt J
Matt J 2013 年 5 月 27 日
編集済み: Matt J 2013 年 5 月 27 日
You're missing a parenthesis ')' in your regression model. It's important for us to know where it should go.

サインインしてコメントする。

回答 (1 件)

the cyclist
the cyclist 2013 年 5 月 27 日
If you have the Statistics Toolbox, then you can use the nlinfit() function.
Type
doc nlinfit
in the interface, or see this page for details: http://www.mathworks.com/help/stats/nlinfit.html
  8 件のコメント
ameen
ameen 2013 年 5 月 27 日
Thank you very much Matt
so the problem is with my data ??
Matt J
Matt J 2013 年 5 月 27 日
編集済み: Matt J 2013 年 5 月 27 日
Or your model. Maybe you should be fitting
y=x(1)*exp(-x(2)*t)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by