Fourier derivative

Versione 1.0.0.0 (1,32 KB) da Matt
A numerical differentiator for periodic functions using Fourier transformations
768 download
Aggiornato 3 gen 2013

Visualizza la licenza

Spectral methods of solving partial differential equations may involve the use of a Fourier transform to compute derivatives. If f is a uniformly sampled periodic function containing an even number of elements, then fourierderivative(f) computes the derivative of f with respect to the element spacing. For best results, f should be periodic such that f(x + a) = f(x + b). As an example,

x = linspace(0,pi);
f = exp(cos(x).*sin(2*x));
dfdx = fourierderivative(f,0,pi);

Results for nonperiodic f are dubious.

Cita come

Matt (2025). Fourier derivative (https://it.mathworks.com/matlabcentral/fileexchange/39700-fourier-derivative), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2010a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0