Generate fitting curve from timetable plot
Ältere Kommentare anzeigen
I have this table with percentatge values over time. When I do a scatter plot i get the following:

I would like tot fit a line over these points so that it show like this:

I know probably is easy to do, but I amb quite new to matlab programming and I've been wasting a couple of hours trying to do it but I am just getting different errors for each new method I try. I just could plot a linear regression, which I didn't want because it does not fit the plot shape.
Thank you in advance
1 Kommentar
David Wilson
am 30 Mär. 2020
So when you say above " would like tot (sic) fit a line over these points", you really mean a smooth curve that runs through the data cloud?
Do you have the curvefitting toolbox or the optimisation toolbox?
If not, then you have made more work for yourself, but you can always follow:
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Spline Postprocessing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
