Borrar filtros
Borrar filtros

double integral function error

1 visualización (últimos 30 días)
Blanca Castells
Blanca Castells el 31 de En. de 2017
Comentada: Andrei Bobrov el 3 de Feb. de 2017
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?

Respuestas (1)

Andrei Bobrov
Andrei Bobrov el 31 de En. de 2017
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 comentarios
Blanca Castells
Blanca Castells el 3 de Feb. de 2017
Thx !!
Andrei Bobrov
Andrei Bobrov el 3 de Feb. de 2017
I am glad!

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by