How do i obtain a function from multiple variables?

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

For example i have five arrays full of random variables like;
A = [1 5 9 6 3 5] B = [5 6 9 3 5 8] C = [7 4 1 2 5 4] D = [5 4 2 3 6 8] E = [7 8 5 9 6 2]
is there a way that i can obtain a function like
E = f(A,B,C,D) ?
Perhaps a scattered interpolant?
It depends: do you need to find some formula given the data, or do you just need to be able to interpolate given those particular data points?
i need a formula
Check my answer. You will obtain a formula.
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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2017년 12월 28일

댓글:

2017년 12월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by