Difference between revisions of "Fft freq axis.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Restore pre-bulk-edit wiki content)
Line 1: Line 1:
 
{{DISPLAYTITLE:fft_freq_axis.m}} __NOTOC__
 
{{DISPLAYTITLE:fft_freq_axis.m}} __NOTOC__
−
 
 
Frequency axis for FFT with optional zero-filling.
 
Frequency axis for FFT with optional zero-filling.
  
 
==Syntax==
 
==Syntax==
  
−
[f_shift,f,df]=fft_freq_axis(npts,dt,zf)
+
          [f_shift,f,df,nfft]=fft_freq_axis(npts,dt,zf)
  
 
==Arguments==
 
==Arguments==
  
−
npts    - number of acquired time-domain points
+
        npts    - number of acquired time-domain points
 
         dt      - time step between points
 
         dt      - time step between points
 
         zf      - zero-fill length added to time domain
 
         zf      - zero-fill length added to time domain
Line 15: Line 14:
 
==Outputs==
 
==Outputs==
  
−
f_shift - frequency axis for fftshift(fft(...))
+
        f_shift - frequency axis for fftshift(fft(...))
 
         f      - frequency axis for fft(...)
 
         f      - frequency axis for fft(...)
 
         df      - frequency resolution
 
         df      - frequency resolution
  
 
==Examples==
 
==Examples==
−
 
 
See examples in the Spinach distribution relevant to this function.
 
See examples in the Spinach distribution relevant to this function.
  
 
==Notes==
 
==Notes==
−
 
 
This page was generated from the function header in the Spinach repository.
 
This page was generated from the function header in the Spinach repository.
  
 
==See also==
 
==See also==
−
 
 
* [[ifft_time_axis.m]]
 
* [[ifft_time_axis.m]]
 
* [[plot_1d.m]]
 
* [[plot_1d.m]]

Revision as of 14:48, 5 April 2026

Frequency axis for FFT with optional zero-filling.

Syntax

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

Arguments

       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