diffCenter

バージョン 2.0.0.0 (1.45 KB) 作成者: Matthew Kelly
Computes the second-order finite difference approximation.
ダウンロード: 263
更新 2015/12/30

ライセンスの表示

% dx = diffCenter(x,dt)
%
% Computes the second-order finite difference approximation of x with
% respect to t. A one-sided second order difference is used at the end
% points, so size(dx) == size(x).
%
% INPUTS:
% x = [m, n] = matrix of function values over a uniform time grid n
% dt = sampling period of x (default = 1)
%
% OUTPUTS:
% d = dx/dt = first derivative of x wrt t
%
% NOTES:
% This command is very similar to Matlab's gradient command. The
% difference between the two is how they handle the boundaries.
% DiffCenter (this function) uses a second-order finite difference,
% while gradient (by Matlab) uses a first-order finite difference.
% The functions are identical for interior points.
%
% See also: cumInt, diff, gradient
%

引用

Matthew Kelly (2024). diffCenter (https://www.mathworks.com/matlabcentral/fileexchange/54459-diffcenter), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2012a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersSparse Matrices についてさらに検索
謝辞

ヒントを与えたファイル: diffCenterVar

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
2.0.0.0

BUG FIX: The one-sided difference coefficients were off by a factor of two! They are now correct.

Added a reference to the Matlab command gradient, which is very similar to diffCenter.

1.5.0.0

still trying to make image fit in window properly

1.4.0.0

Fixed photo. Again.

1.3.0.0

Re-sized image so it isn't cropped poorly by file exchange.

1.2.0.0

Added photo.

1.1.0.0

added more tags

1.0.0.0