Numerical integration - MATLAB integral - MathWorks
www.mathworks.com › help › matlabCreate the vector-valued function and integrate from x=0 to x=1. Specify 'ArrayValued',true to evaluate the integral of an array-valued or vector-valued function. fun = @ (x)sin ( (1:5)*x); q = integral (fun,0,1, 'ArrayValued' ,true) q = 1×5 0.4597 0.7081 0.6633 0.4134 0.1433 Improper Integral of Oscillatory Function Create the function .