Integration using the built-in 'int' command

plot(x(1:200),'.'); Because the x values are randomly distributed, we can define the average value of the function: The integral is the average value of the function multiplied by the total interval, (b-a). ................
................