How can we implement the following algorithm in MATLAB?

1 visualización (últimos 30 días)
Malak
Malak el 24 de Mayo de 2023
Comentada: Daniel el 24 de Mayo de 2023
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 comentario
Daniel
Daniel el 24 de Mayo de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by