How MATLAB move between discrete measurements
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
ameen
am 19 Dez. 2014
Kommentiert: Image Analyst
am 22 Dez. 2014
Hi there
when we have discrete measurements of speed or temperature, based on what MATLAB draw a scatter curve between these points ?
Thanks in advance.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 22 Dez. 2014
See my spline demo, attached, which will produce the plot below:
The red are the original data points, and the blue are the spline interpolated points. You can take the markers off the blue curve, and not plot the red curve, and plot the original data with big blue dots and it will look just like your curve.
2 Kommentare
Image Analyst
am 22 Dez. 2014
You're welcome. You can thank people also by Voting for their answer or Accepting their answer.
Weitere Antworten (1)
dpb
am 19 Dez. 2014
By plot, scatter, etc., simply straight line interpolation between points.
Use cftool or one of the specific fitting methods to fit a functional form or could use interp1 and an interpolating option other than linear to do some other form.
5 Kommentare
dpb
am 21 Dez. 2014
Well, clearly it was something other than straight line -- but you still didn't say what specific function you used to create the plot. There are many possible choices; which you did, specifically, I have no idea unless you show/tell us what you used as I said in the very first response.
That looks like it probably was a smoothing spline, given the shape of the curve, however.
Again, how, specifically, did you create the plot in Matlab?
Siehe auch
Kategorien
Mehr zu Splines finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!