thnx for the reply about my problem
in the previous problem i am actually confused between "quad" and "quad1" command
and is the f(x) is y=f(x)? i mean to say the function that relate the y and x.
Do you if there is some data values in excel then how
can we plot these values in matlab.
If you have only few point of your curve, than you may use two ways:
1. Find approximation polynomial and than evaluate integral;
2. Just use following formula (by integral definition):
[tex]\sum_{i=1}^{n-1} f_i(x_{i+1}-x_i) , where f_i=f(x_i)[/tex]
There are some other methods you may find in the Internet.
Note: Both methods gives not exact solutions. For exact solution you have to know f(x)