Is it possible to integrate a cfit function

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

답변 (1개)

Matt J
Matt J 2018년 4월 8일

1 개 추천

댓글 수: 1

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, ...

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Conditional Variance Models에 대해 자세히 알아보기

질문:

2018년 4월 8일

댓글:

2018년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by