Gypaets/trigradient​2

버전 1.1.0.0 (3.7 KB) 작성자: Gypaets
First and second order derivative calculation for scattered data. Fast and accurate method.
다운로드 수: 417
업데이트 날짜: 2017/6/29

[ZX, ZY, ZXX, ZYY, ZXY] = trigradient2(X, Y, Z, T, M)
The derivatives of the function Z(X,Y) are calculated with a least squares linear regression. The system of equations is set up with Taylor series from each point to the adjacent vertices. If a vertex is connected to less than five vertices then vertices in two-edge distance are used too.
This derivation method provides much better results than first order approaches. Specially the error of the calculated second order field derivatives is significantly smaller than deriving two times the field with a first order function.
Input:
X= Vector with x-coordinates.
Y= Vector with y-coordinates.
Z= Matrix with function values on each point. If Z has multiple
columns the derivatives for each column are calculated.
Optional argument:
T= Triangulation (Nx3 matrix with polygon vertices). If not given the delaunay triangulation of X,Y is used.
M= Method used for calculation. Default value is 0.
0: One large equation system. Fast.
1: Multiple small equations systems. Slower but depending on the input values more accurate.

Output:
ZX=dz/dx
ZY=dz/dy
ZXX=d^2z/dx^2
ZYY=d^2z/dy^2
ZXY=d^2z/(dx dy)

인용 양식

Gypaets (2024). Gypaets/trigradient2 (https://github.com/Gypaets/trigradient2), GitHub. 검색됨 .

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

받음: TRIGRADIENT.M

Community Treasure Hunt

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

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.1.0.0

Repo update.
Linked to github repository.
Corrected a typo.
Provided alternative 'repelem' to make trigradient2.m compatible with Matlab versions older than 2015.
Added alternative calculation method with many small systems instead of only a large one.
Updated description.
File description update

1.0.0.0

File description update

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.