curve fitting tool custom equation
Mostrar comentarios más antiguos
Hi,
I used cf tool to get a function to describe my data but it seems to give me a straight line.
I know the custom equation is the right one is there anything else I can do to make the function more like my data?
Thank you all for your time!

3 comentarios
Michal Naim Ben Eliyahu
el 18 de Abr. de 2022
Can you provide the data t and h?
Technically, if
, then
, but since your equation
was incorrect, it didn't fit.
was incorrect, it didn't fit.The signal seems to slow down significantly in these 3 cycles, but regains momentum after 5.6 seconds.
The signal doesn't look like the one produced from a 2nd-order linear system. So your proposed model won't work. A rough estimation shows it could be from a 4th-order system.

Michal Naim Ben Eliyahu
el 19 de Abr. de 2022
Respuesta aceptada
Más respuestas (2)
Torsten
el 18 de Abr. de 2022
1 voto
Don't use the data for t > 6.3 in the fitting process.
4 comentarios
John D'Errico
el 18 de Abr. de 2022
I agree with that statement on general principles, since they fail to follow the nice smooth curve the rest of the data does. But the problem is more bad starting values. Those points in the tail will not significantly impact the sum of squares, so lack of fit there will not be what is causing the problem.
Michal Naim Ben Eliyahu
el 18 de Abr. de 2022
Torsten
el 18 de Abr. de 2022
What initial values for the parameters did you choose ?
Did you plot the resulting curve ? Is it near to the one you expect to get ?
Michal Naim Ben Eliyahu
el 19 de Abr. de 2022
Alex Sha
el 19 de Abr. de 2022
if taking only part of data, for example, from No. 105 to No. 300, then the result will looks good
Sum Squared Error (SSE): 1111312565.89975
Root of Mean Square Error (RMSE): 2381.16821558602
Correlation Coef. (R): 0.969742933902271
R-Square: 0.940401357853383
Adjusted R-Square: 0.939783755344092
Determination Coef. (DC): 0.940401357853381
Chi-Square: -43481.4424771284
F-Statistic: 753.442740102336
Parameter Best Estimate
---------- -------------
a -291924.957940865
b 7.9210511350074E-7
c -1.68465029667797E-5
d -2953.68909153569
e -9546.50019773865

Categorías
Más información sobre Linear and Nonlinear Regression en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



