How can we implement the following algorithm in MATLAB?

1 次查看(过去 30 天)
Hi, we are using smoothing splines to fit some curves. we have one problem: we need to choose the value of smoothing parameter. one possible solution to this problem is cross-validation. I found one reference THE CROSS-VALIDATION METHOD IN THE SMOOTHING SPLINE REGRESSION explaining the algorthim of this, but I am not sure how this can be implemented in matlab. The data I am trying to fit is attached and I am using csaps() to fit it. Kindly if anyone can help me out in how we can implement it.
  1 个评论
Daniel
Daniel 2023-5-24
I think it might help to see an example of how far you've gotten with the code for your current attempt and what your questions are in relation to it. It looks like you're asking how to use csaps, but we're not going to be more helpful than the documentation unless we can see more clearly where you're running into problems. You can submit executable code by pressing Alt+Enter to create a code area; then press Alt+Enter again to leave it. You can execute the code within a code area to make sure it works by clicking the play icon in the Run area.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by