curve fitting for multiple variable

93 ビュー (過去 30 日間)
zohre vash
zohre vash 2020 年 1 月 18 日
コメント済み: Tesfayesus Mamo 2021 年 6 月 29 日
I am an engineering student and relatively inexperienced with matlab. I have data sets that describe the relation between a dependent variable of interest and six different independent variables,I want to do a fit to define a function that will describe the dependent variable as a function of the six independent variables:
y=f(x1,x2,x3,x4,x5,x6)
Can I do with cftool?
How would I go about doing this? Thanks in advance for any help.
  1 件のコメント
Tesfayesus Mamo
Tesfayesus Mamo 2021 年 6 月 29 日
Hi zohre vash,
I dont think cftool can do that, it can only work with two independent variable maximum more than it colapses but what you can do is, you can generate the model equation by using the syntex regress.

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

採用された回答

Robert U
Robert U 2020 年 1 月 18 日
Hi zohre vash,
that depends strongly on what kind of model function you are using. cftool provides a bunch of functions and a GUI in order to control your actions.
If your function is nonlinear you might look into lsqcurvefit.
If you have constraints regarding the datapoints of your model function and your model function is polynomial you might want to try "polyfix" from File Exchange:
If you have a custom function you might look into fmincon and formulate an optimization problem:
Kind regards,
Robert

その他の回答 (0 件)

カテゴリ

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