Hi Everyone.(adsbygoogle = window.adsbygoogle || []).push({});

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

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB Double integrals with matlab

**Physics Forums | Science Articles, Homework Help, Discussion**