Extract (splined) function from two vectors
Mostrar comentarios más antiguos
Hi, I have the following plot and want to extract an expression for an exponential function that's located slightly below the plotted line. Is it possible to do this in Matlab somehow?

Regards
David
Respuesta aceptada
Más respuestas (1)
Ahmet Cecen
el 10 de Ag. de 2014
0 votos
This might sound like a simple-minded suggestion, if you are looking for a function "slightly below" the one you drew, why not just subtract a "slight" margin from the y-axis (like y-0.0001) then find a regular exponential fit using cftool or fit.
3 comentarios
David
el 10 de Ag. de 2014
Ahmet Cecen
el 10 de Ag. de 2014
Firstly, those two functions will give you the explicit formula of your fit. Secondly, f(x)=a*x^2+b*x+c is a polynomial, not an exponential. Use cftool, choose your x and y, then chose the polynomial fit to be second degree. Look at the left of the plot and you'll see the coefficients of the fit. If you don't have the statistics toolbox, then you can use my MultiPolyRegressV3 function at the file exchange, although it won't do the plotting of the actual curve for you, it will find you your coefficients for polynomial fits.
David
el 11 de Ag. de 2014
Categorías
Más información sobre Get Started with Curve Fitting Toolbox 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!