이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
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 (2026). intpoly(f,x,y) (https://kr.mathworks.com/matlabcentral/fileexchange/62278-intpoly-f-x-y), MATLAB Central File Exchange. 검색 날짜: .
도움
도움 준 파일: integPoly
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.0.0 | refine the description |
