How to intagrate three correaltions to find a general eqaution ?

조회 수: 2 (최근 30일)
JINU SUDHAKARAN Mr
JINU SUDHAKARAN Mr 2023년 2월 1일
편집: Zuber 2023년 2월 16일
I need to intagrate three linear correaltions to find a general eqaution (X- Y plots from experiments). i found the correlations from the experimental data (linear fitting). Now i need to find a genaral general correaltion for all cases. Cound you please hel me to solve this?
Or
I have 3 graphs which can be fitted by linear curve fitting . How can we find the average of these three curves and obtain a general equation? is this method is feasible to formulate the genaral eqaution?
Thanks in advance

답변 (1개)

Zuber
Zuber 2023년 2월 15일
편집: Zuber 2023년 2월 16일
Hi,
I understand that you want to know about how to generate the average of three curves obtained using linear polynomial fitting.
I did a quick search on File Exchange and got to know that this problem can be solved by using the ‘avgcurve’ function available at the following link:
To answer your second query, you can find an approximate best-fit polynomial of nth degree by using the independent (x) and dependent variable (y) of the generated average curve in workspace using the polyfit function as follows:
p = polyfit(x,y,n);
The coefficients of the nth order polynomial are stored in the array p.
For further information regarding the ‘polyfit’ function, you can refer to the documentation here: https://in.mathworks.com/help/matlab/ref/polyfit.html
I hope this answers your query.

카테고리

Help CenterFile Exchange에서 Get 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