Difference between revisions of "Fftdiff.m"
m (Spot-edit Spinach function page first-line NOTOC and template fields) |
m (Rename Arguments section heading to Parameters) |
||
| Line 6: | Line 6: | ||
kern=fftdiff(order,npoints,dx) | kern=fftdiff(order,npoints,dx) | ||
| − | == | + | ==Parameters== |
order - order of the derivative | order - order of the derivative | ||
Revision as of 18:48, 5 June 2026
Spectral differentiation kernel. Differentiation corresponds to multiplication in the Fourier domain. This function generates the multiplier.
Syntax
kern=fftdiff(order,npoints,dx)
Parameters
order - order of the derivative
npoints - number of points in the grid
dx - grid step length
Outputs
kern - a vector that is to be used for accurate
numerical differentiation of periodic real
signals in the following way:
derivative=real(ifft(fft(signal).*kern));
Notes
Periodic boundary conditions.
See also
fdmat.m, fdvec.m, fourlap.m, fourdif.m
Version 2.1, authors: Ilya Kuprov