Numerical integration

1 Ansicht (letzte 30 Tage)
R yan
R yan am 27 Jul. 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??

Antworten (2)

Andrei Bobrov
Andrei Bobrov am 27 Jul. 2011
y = 5; %eg: y-constant
quad(@(x)f(x,y),xmin,xmax)
  4 Kommentare
R yan
R yan am 28 Jul. 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 am 2 Aug. 2011
Not for *all* f(x,y), but almost certainly for *your* f(x,y). See Fubini's theorem, for example.

Melden Sie sich an, um zu kommentieren.


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

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by