Function Length Numerical Integration Matlab