Numerical integration

1 visualización (últimos 30 días)
R yan
R yan el 27 de Jul. de 2011
I want to integrate numerically f(x,y) with respect to x keeping y constant. Can quad do it with some modifications?
Any other ideas??

Respuestas (2)

Andrei Bobrov
Andrei Bobrov el 27 de Jul. de 2011
y = 5; %eg: y-constant
quad(@(x)f(x,y),xmin,xmax)
  4 comentarios
R yan
R yan el 28 de Jul. de 2011
you mean to say:
int(int(f(x,y),x,a,b),y,a,b)=dblquad('f(x,y)',a,b,a,b)
valid for all f(x,y)?
Mike Hosea
Mike Hosea el 2 de Ag. de 2011
Not for *all* f(x,y), but almost certainly for *your* f(x,y). See Fubini's theorem, for example.

Iniciar sesión para comentar.


Innocent
Innocent el 2 de Ag. de 2011
Hi Yan, i did post an example of simple code under newsgroup follow the link bellow to check it out.

Categorías

Más información sobre Symbolic Math Toolbox 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