Can anyone help me in curve fitting problem of Magic Formula?
Afficher commentaires plus anciens
I have a set of 25 values of x and y and this predefined equation. I have to fit the values in this and find the coefficients
f (x)= D.sin[C tg-1{(1- E).B.x + E.tg-1(B.x)}] tg-1 = inverse tg function
I have to write a MATLAB algorithm to find the optimum fit for the data shown above and find the parameters B, C, D, and E. I even have to plot the curve
6 commentaires
Walter Roberson
le 20 Mar 2017
Modifié(e) : Walter Roberson
le 20 Mar 2017
Unfortunately between the "]" and the "tg-1" you have a series of 14 unicode characters that fall into the "private use" range, meaning that any particular printable representation assigned to them is for use only within one program. U+F0BD U+F0D7 U+F0E9 U+F0D7 and so on. We do not know if those are important for our understanding ?
When you say "inverse tg" is that "inverse tan" ?
Walter Roberson
le 20 Mar 2017
Your expression appears to correspond to
D .* sin(C .* atan((1-E) .* B .* x + E .* atan(B .* x)))
Could you confirm that you want the arctan of B*x to be inside another arctan expression? It is not at all common to want to arctan an arctan.
If you had something more like
D .* sin(C .* atan((1-E) .* atan(B .* x) + E .* atan(B .* x)))
or
D .* sin(C .* (atan((1-E) .* B .* x) + atan(E .* B .* x)))
then it would make more sense, as it would be finding a mixing coefficient E between two possibilities.
Akshay Apte
le 20 Mar 2017
Walter Roberson
le 20 Mar 2017
When you say "magic formula" are you referring to "magic formula investing" or something like that ???
John BG
le 20 Mar 2017
magic=science?
Torsten
le 21 Mar 2017
https://en.wikipedia.org/wiki/Hans_B._Pacejka
Best wishes
Torsten.
Réponses (2)
Walter Roberson
le 21 Mar 2017
0 votes
Marco Furlan
le 11 Juil 2017
Modifié(e) : Marco Furlan
le 11 Juil 2017
0 votes
Another approach can be to use lsqcurvefit
Catégories
En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!