Numerical integration

1 回表示 (過去 30 日間)
R yan
R yan 2011 年 7 月 27 日
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??

回答 (2 件)

Andrei Bobrov
Andrei Bobrov 2011 年 7 月 27 日
y = 5; %eg: y-constant
quad(@(x)f(x,y),xmin,xmax)
  4 件のコメント
R yan
R yan 2011 年 7 月 28 日
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 2011 年 8 月 2 日
Not for *all* f(x,y), but almost certainly for *your* f(x,y). See Fubini's theorem, for example.

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


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

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by