How can we implement the following algorithm in MATLAB?

1 visualizzazione (ultimi 30 giorni)
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 Commento
Daniel
Daniel il 24 Mag 2023
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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Get Started with Curve Fitting Toolbox in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by