How to intagrate three correaltions to find a general eqaution ?

1 visualización (últimos 30 días)
JINU SUDHAKARAN Mr
JINU SUDHAKARAN Mr el 1 de Feb. de 2023
Editada: Zuber el 16 de Feb. de 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

Respuestas (1)

Zuber
Zuber el 15 de Feb. de 2023
Editada: Zuber el 16 de Feb. de 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.

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by