필터 지우기
필터 지우기

double integral function error

조회 수: 1 (최근 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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by