Make x vector and y vector
x = [0 .1 .2 etc] y = [1 8 4 etc.]
quad uses a function handle
You can use trapezoidal integration for a numerically defined function:
trapz(x,y)
or you can write it as trapz(.1, y) because of the even spacing
quad method is not recommended in MATLAB documentation (Simpson Quadrature). Integral(fun,x,y) is the current best method.