필터 지우기
필터 지우기

How can I know y value after smoothing data function?

조회 수: 2 (최근 30일)
Lukas Poviser
Lukas Poviser 2022년 5월 7일
답변: Jonas 2022년 5월 7일
I do have two vetors of recorded data. X is time a Y is volume. I have made curve fitting with that looks like this.
smoothed = fit(ZS_exspir_time,ZS_minute_vent_weight,'smoothingspline','SmoothingParam',0.001)
Vector of time (x axis) is for example: [7, 8.9, 9.6, 10.8, 12.7]. And I would like to the value of volume (y) when time is exatly 10. I don't know how to get the certain value from function?
  댓글 수: 1
Jeffrey Clark
Jeffrey Clark 2022년 5월 7일
I don't use the Curve Fitting Toolbox, but have used the MATLAB similar functions. According to this help page there should be a return from 'fit' that shows the piecewise spline data to allow computing y at time 10:

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

채택된 답변

Jonas
Jonas 2022년 5월 7일
you can use feval() to evaluate your fitobject called 'smoothed' in your case.
see also https://de.mathworks.com/help/curvefit/feval.html for details

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by