- #1

- 21

- 0

I would like to integrate the following using matlab:

[tex] \int_0^1 ~\int_0^x e^{-x^2} ~dy ~dx [/tex]

looks pretty simple but don't know how to set up the embedded for loops for the integral with in the integral especially that the upper limit of the inner integral is x and not a number.

My actual assignment is much more complicated than this but i thought trying to work it out for a simpler function might help me with the more complex one.

Thanks for your help