Higher derivatives of a vector wrt another vector

버전 1.0.0 (2.02 KB) 작성자: Ahmed Mahfouz
The function differentiates a given vector with respect to another vector for any given number of times.
다운로드 수: 45
업데이트 날짜: 2018/10/20

라이선스 보기

MDIFF(Y,X,M) numerically differentiates the vector Y wrt the
vector X, m times and stores the derivatives in DERIVATIVES.
DERIVATIVES is a 2D matrix of size of m-by-n, where n is the length of
either the vector Y or X. The first row in DERIVATIVES is the first
derivative and and the i-th row is the i-th derivative.
DERIVATIVES will be just the gradient vector if m = 1

MDIFF(y,x) numerically differentiates the the vector Y wrt the
vector X one time and stores that gradient in DERIVATIVES.

MDIFF(y) is the same as DIFF(Y) with different dimensions of the output
vector, and the same as GRADIENT(Y) but with the last element NAN.

The vector of the i-th derivative has ( n-i ) numerical elements
and ( i ) NAN elements at the end of the row.

The numerical differentiation is a very noisy process and the noise gets
bigger in magnitude as m gets bigger && as dx gets smaller. These noises
can be filtered easily though, or a more robust differentiation algorithm
can be used.

인용 양식

Ahmed Mahfouz (2024). Higher derivatives of a vector wrt another vector (https://www.mathworks.com/matlabcentral/fileexchange/69166-higher-derivatives-of-a-vector-wrt-another-vector), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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