% Example 12-4: Numerical integration of a function % First define the function F = @ (x) x.*exp(-x.^0.8) + 0.2 % Do a quick plot fplot(F, [0 8]) grid on pause % Use quad to find the integral quad(F, 0, 8)