How to create function handle from fit struct after using curve fitting toolbox?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have this struct as result of my curve fitting toolbox, now I need to create a function handle based on my spline coefficients. Can any one help?
댓글 수: 0
답변 (4개)
Stephan
2018년 7월 13일
Hi,
Why do you need this? You can directly compute new values for your fitresult:
y_new = fitresult(x_new)
This returns the vector corresponding to x_new, which should exactly be the result you expect from a function handle.
Best regards
Stephan
댓글 수: 1
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!