double integral function error

20 ビュー (過去 30 日間)
Blanca Castells
Blanca Castells 2017 年 1 月 31 日
コメント済み: Andrei Bobrov 2017 年 2 月 3 日
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?

回答 (1 件)

Andrei Bobrov
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);
  2 件のコメント
Blanca Castells
Blanca Castells 2017 年 2 月 3 日
Thx !!
Andrei Bobrov
Andrei Bobrov 2017 年 2 月 3 日
I am glad!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by