現在この提出コンテンツをフォロー中です。
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます
編集メモ: This file was selected as MATLAB Central Pick of the Week
The central_diff function calculates a numeric gradient using second-order accurate difference formula for evenly or unevenly spaced coordinate data. It operates in a similar fashion to the MATLAB function, gradient, except that it permits only one independent variable, x, and correctly handles unevenly spaced values of the x-coordinate data. Accuracy is increased at the ends relative to the MATLAB gradient function, which uses only first-order forward or backward differences at the ends, by instead using second-order forward difference at the left end and second-order backward difference at the right end.
引用
Robert Canfield (2026). central_diff.m (https://jp.mathworks.com/matlabcentral/fileexchange/12-central_diff-m), MATLAB Central File Exchange. に取得済み.
謝辞
ヒントを与えたファイル: central_diff2(y,deltat,d,a), DGradient
