double integral function error
1 次查看(过去 30 天)
显示 更早的评论
Hi everybody!
I'm trying to solve this:
fun1 =@(x,y)(-x.^2);
fun2=@(x,y)(y+1).^2;
fun=@(x,y)fun1+fun2;
q = integral2(fun,0,100,0,50);
but it says "Error" in the last line all the time. Does anyone know whats wrong?
0 个评论
回答(1 个)
Andrei Bobrov
2017-1-31
fun1 = @(x,y)(-x.^2);
fun2 = @(x,y)(y+1).^2;
fun = @(x,y)fun1(x,y)+fun2(x,y);
q = integral2(fun,0,100,0,50);
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!