Difference between revisions of "Fft freq axis.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎See also)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
           [f_shift,f,df,nfft]=fft_freq_axis(npts,dt,zf)
 
           [f_shift,f,df,nfft]=fft_freq_axis(npts,dt,zf)
  
−
==Arguments==
+
==Parameters==
  
 
         npts    - number of acquired time-domain points
 
         npts    - number of acquired time-domain points

Revision as of 17:48, 5 June 2026

Frequency axis for FFT with optional zero-filling.

Syntax

          [f_shift,f,df,nfft]=fft_freq_axis(npts,dt,zf)

Parameters

       npts    - number of acquired time-domain points
       dt      - time step between points
       zf      - zero-fill length added to time domain

Outputs

       f_shift - frequency axis for fftshift(fft(...))
       f       - frequency axis for fft(...)
       df      - frequency resolution

Examples

See examples in the Spinach distribution relevant to this function.

Notes

This page was generated from the function header in the Spinach repository.

See also

Version 2.11, authors: Ilya Kuprov