Is it possible to integrate a cfit function

16 visualizaciones (últimos 30 días)
JAMES WAITE
JAMES WAITE el 8 de Abr. de 2018
Comentada: Steven Lord el 9 de Abr. de 2018
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

Respuestas (1)

Matt J
Matt J el 8 de Abr. de 2018
  1 comentario
Steven Lord
Steven Lord el 9 de Abr. de 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, ...

Iniciar sesión para comentar.

Categorías

Más información sobre Conditional Variance Models en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by