MATLAB: How to integrate SS y*exp(x) dxdy using matlab

double integral

As the title asks. the boundary is xmin=y/4 and xmax=6-0.5*y, ymin=0, and ymax=4

Best Answer

I think this should work; you want the integral2 function.
fun = @(x,y)(x.*exp(y));
ymin = @(x)(x/4);
ymax = @(x)(6 - 0.5*x);
q = integral2(fun,0,4,ymin,ymax)