1st and 2nd derivatives of non equidistant sampled curves

버전 1.0.0 (846 KB) 작성자: Peter Seibold
Input: x, y. Output: y'(x), y'(x_centered), y"(x), y"(x_centerded)
다운로드 수: 5
업데이트 날짜: 2023/11/21

라이선스 보기

1 Manual
1.1 Syntax
[dy1,dy2,x1c,dy1c,x2c,dy2c]=derivativeNE(x,y)
1.2 INPUT
x as column or row vector, more than 2 values
y as column or row vector, same amount of values as for x
1.3 OUTPUT
dy1: 1st derivative, y’(x)
dy2: 2nd derivative, y”(x)
The first dy2 at x(1) and the last dy2 at x(end) don't exist and are set to NaN
x1c and dy1c return the exact 1st derivative y’(x1c) at the line segment centers.
x2c and dy2c return the 2nd derivative y”(x2c) at the center of line segment pairs.
The result is in general not as good as y”(x) is.
If x or y is a row vector, all outputs are returned as row vectors.
On error NaN is returned for all outputs.
1.4 Syntax examples
For 1st derivative:
dy1=derivativeNE([1;3;4;5],[1;9;16;25]);
For 2nd derivative:
[~,dy2]=derivativeNE([1;3;4;5],[1;9;16;25]);
For more accurate 1st derivative:
[~,~,x1c,y1c]=derivativeNE([1;3;4;5],[1;9;16;25]);
A demonstration GUI is included.

인용 양식

Peter Seibold (2024). 1st and 2nd derivatives of non equidistant sampled curves (https://www.mathworks.com/matlabcentral/fileexchange/155297-1st-and-2nd-derivatives-of-non-equidistant-sampled-curves), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2016a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

DerivativeNE231121

버전 게시됨 릴리스 정보
1.0.0