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
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 Center 및 File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!