How to intagrate three correaltions to find a general eqaution ?

1 Ansicht (letzte 30 Tage)
JINU SUDHAKARAN Mr
JINU SUDHAKARAN Mr am 1 Feb. 2023
Bearbeitet: Zuber am 16 Feb. 2023
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

Antworten (1)

Zuber
Zuber am 15 Feb. 2023
Bearbeitet: Zuber am 16 Feb. 2023
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.

Kategorien

Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by