intpoly(f,x,y)

バージョン 1.0.0.0 (1.06 KB) 作成者: Liutong
Double Integration over a polygonal region.
ダウンロード: 201
更新 2017/3/25

ライセンスの表示

z=intpoly(f,x,y) integrate function f(u,v) over the polygon, which is defined by vertices [x,y]

input:
-f: a function handle, for example f=@(x,y) exp(x+y)
-x,y: vertices of the polygon. the (x1,y1),(x2,y2)... vertices can be either in clockwise order or counterclockwise order
ouput:
-z: the value of function f integrated over the polygon
example:
fill([0,1,2],[0,1,0],'b') %this is the triangle region

f=@(x,y) exp(x+y);
z=intpoly(f,[0,1,2],[0,1,0]) will integrate f over the triangle region defined by its three verteces (0,0), (1,1) and (2,0)

ans=4.1945

引用

Liutong (2024). intpoly(f,x,y) (https://www.mathworks.com/matlabcentral/fileexchange/62278-intpoly-f-x-y), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2016b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersTriangulation Representation についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0

refine the description