フィルターのクリア

Regression in matlab to estimate parameters

3 ビュー (過去 30 日間)
Bharat
Bharat 2016 年 1 月 4 日
コメント済み: Brendan Hamm 2016 年 1 月 4 日
Hi,
I want to use regression to fit parameters to a function I define. I tried using fminsearch in matlab, and it doesn't converge. However, in excel solver the GRG Nonlinear method works very well. Is there any similar function in matlab for this purpose? (With experimental data, I used the function to predict the error. I used fminsearch to minimize sum(deviation^2). )

回答 (1 件)

the cyclist
the cyclist 2016 年 1 月 4 日
If you have the Statistics and Machine Learning Toolbox, you can use the nlinfit function to fit an arbitrary function.
The documentation has some examples. If you search by username and "nlinfit", you will also find a couple I have posted here.
  3 件のコメント
the cyclist
the cyclist 2016 年 1 月 4 日
The best form of thanks is to upvote and/or accept an answer, which rewards the contributor and can point future users to useful answers.
Brendan Hamm
Brendan Hamm 2016 年 1 月 4 日
I'll also point you to the newer and better version of nlinfit, called fitnlm. There is way more functionality surrounding the Statistics & Machine Learning Toolbox's objects.

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

Community Treasure Hunt

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

Start Hunting!

Translated by