How to create function handle from fit struct after using curve fitting toolbox?
5 次查看(过去 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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!