You can define an integral in Matlab using the integral function. The syntax for defining an integral from 0 to pi is as follows:
main.m102 chars3 lines
This will integrate the sin(x) function from 0 to pi and return the result as a numerical value. You can replace sin(x) with any other function you want to integrate.
gistlibby LogSnag