How to use the spline function to find a function then integrate that function by using the quad function ?

if I had a data set x and another data set y and I want to integrate the function f(x). I know that to do that i need to use quad(@f,x,y) but how do i compute the function by using the spline function ?

Answers (0)

Asked:

on 29 Nov 2012

Community Treasure Hunt

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

Start Hunting!