Is it possible to integrate a cfit function
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Matt J
le 8 Avr 2018
1 commentaire
Steven Lord
le 9 Avr 2018
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, ...
Voir également
Catégories
En savoir plus sur Conditional Variance Models dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!