Create the anonymous function.
fun = @(x,y) 4+(y./25)-(x.^2)./50;
Integrate and to q1, Integrate and to q2
q1 = integral2(fun,-1,1,-1,0)xmin = @(y) -sqrt(1-y.^2);xmax = @(y) sqrt(1-y.^2);q2 = integral2(fun,xmin,xmax,0,1)
Error using integral2 (line 71)
XMIN must be a floating point scalar.
final =q1+q2
anyone can help in this error?
Best Answer