Is it possible to integrate a cfit function
3 ビュー (過去 30 日間)
古いコメントを表示
I have two data sets 'ymm' and 'v'. I need to integrate the function 'f' found using
f=fit(ymm,v,'poly8')
The integral is q= Pi (integral to limits of ymm) f^2 dymm
0 件のコメント
回答 (1 件)
Matt J
2018 年 4 月 8 日
1 件のコメント
Steven Lord
2018 年 4 月 9 日
That allows you to integrate the fit object, but it doesn't allow you to integrate something like the fit squared. To do that, write a function that evaluates the fit and manipulates the result and pass that function into integral. In this case, where the fit is stored in f, use:
integral(@(x) f(x).^2, ...
参考
カテゴリ
Help Center および File Exchange で Conditional Variance Models についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!