필터 지우기
필터 지우기

How MATLAB move between discrete measurements

조회 수: 2 (최근 30일)
ameen
ameen 2014년 12월 19일
댓글: Image Analyst 2014년 12월 22일
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.

채택된 답변

Image Analyst
Image Analyst 2014년 12월 22일
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
ameen
ameen 2014년 12월 22일
Thank you for your kind reply and the very useful code
Image Analyst
Image Analyst 2014년 12월 22일
You're welcome. You can thank people also by Voting for their answer or Accepting their answer.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

dpb
dpb 2014년 12월 19일
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
dpb
dpb 2014년 12월 21일
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?
ameen
ameen 2014년 12월 22일
Yes this is a smoothing spline

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by