Double integration, limit is not an scalar

Good night, I'll try to be brief, I have, say
quad(@(y) y*quad(@(x)x,0,y) ,0,1)
Two numerical integrations with one particular issue. The variable of the outer integration is one of the limits of the inside integral!
Matlab says the limit has to be an scalar. Can you think of a way of overcoming this? Thank you :)
PD: The actual problem is with the CDF of the normal function, but I do not like to waste your time.

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

Asked:

on 28 Jan 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!