scatterquad2

버전 1.0.0.0 (2.04 KB) 작성자: Ben Petschel
calculates the volume under a surface defined by scattered points
다운로드 수: 285
업데이트 날짜: 2011/6/15

라이선스 보기

scatterquad2(X,Y,Z) finds the volume under the surface defined by the points (X(i),Y(i),Z(i)) with linear interpolation on the Delaunay triangulation of (X,Y) and Z=0 outside the convex hull of (X,Y).

Example:
load seamount
scatterquad2(x,y,z-min(z)) % returns 190.7996
inR = (x>=211.1 & x<=211.4 & y>=-48.35 & y<=-48);
scatterquad2(x,y,(z-min(z)).*inR) % returns 142.3083
scatterquad2(x,y,1) % returns 0.2696

This function is *much* faster than using DBLQUAD with TriScatteredInterp, or similar methods.

For functions that can be evaluated at arbitrary points, use DBLQUAD or QUAD2D instead. For regular grids, instead use TRAPZ twice.

인용 양식

Ben Petschel (2024). scatterquad2 (https://www.mathworks.com/matlabcentral/fileexchange/31805-scatterquad2), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Delaunay Triangulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0