How can I know y value after smoothing data function?

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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeSmoothing についてさらに検索

製品

リリース

R2021b

質問済み:

2022 年 5 月 7 日

回答済み:

2022 年 5 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by