How do i obtain a function from multiple variables?

1 回表示 (過去 30 日間)
Yagmur Gencoglu
Yagmur Gencoglu 2017 年 12 月 28 日
コメント済み: Walter Roberson 2017 年 12 月 28 日
I have a set of data that is consisted of 5 arrays. There is no relation between them two by two. Is there a way that i can obtain a function of four variables to give the other one?
  5 件のコメント
Birdman
Birdman 2017 年 12 月 28 日
Check my answer. You will obtain a formula.
Walter Roberson
Walter Roberson 2017 年 12 月 28 日
Do you have a model that you are fitting the parameters to? There are an infinite number of relationships that can be computed between any finite set of points, and there is no inherent reason to consider one of the possible relationships to be "better" than the others.

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

採用された回答

Birdman
Birdman 2017 年 12 月 28 日
Firstly, download the function from the following link(when you open the file, take MultiPolyRegress.m to your directory):
Then, in command line, write the following line:
X=[A' B' C' D'];%should be columnwise(6x4)
Y=E';
reg=MultiPolyRegress(X,Y,2);
func=reg.PolynomialExpression
and you will have an expression of four variables. Let me know the results.
  1 件のコメント
Yagmur Gencoglu
Yagmur Gencoglu 2017 年 12 月 28 日
works perfectly, thank you so much

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by