フィルターのクリア

Developing an arbitrary form of equation from parameters and data

1 回表示 (過去 30 日間)
Kourosh
Kourosh 2014 年 3 月 3 日
コメント済み: Walter Roberson 2014 年 3 月 15 日
Hi, ..., Although Matlab is capable of calculating the equation between data, I am wondering if there is anyway to dictate Matlab to develop our own form of equation like f=-1+(N/Nmax)^q+T/Tmax)^r? Given that N, Nmax, T, and Tmax are known and they are not a single point but a series of data, how q and r can be calculated for the best fit to the equation?
Thanks, Cyrus
  2 件のコメント
dpb
dpb 2014 年 3 月 3 日
Look for the section "Curve Fitting via Optimization" in the documentation under Matlab/Mathematics/Optimization. It gives an example.
If you have the Optimization and/or Curve Fitting toolboxen there are additional tools therein.
Walter Roberson
Walter Roberson 2014 年 3 月 15 日
Cyrus commented "Thanks mate, your comment was so helpful. Cyrus."

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

採用された回答

Star Strider
Star Strider 2014 年 3 月 3 日
If N, Nmax, and T are vectors, you first need to use meshgrid to convert them to matrices with the appropriate orientations. Then you can use nlinfit or lsqcurvefit to do the regression. There is an example here for fitting a surface. You can expand it to your problem.
You can also experiment with the more general Statistical Toolbox functions listed under Nonlinear Models.
  2 件のコメント
Kourosh
Kourosh 2014 年 3 月 6 日
Thanks mate for your great help.
Cyrus
Star Strider
Star Strider 2014 年 3 月 6 日
My pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by