Finds the corresponding frequency array for a homogeneous spaced vector.


Updated Tue, 19 Apr 2011 10:35:52 +0000

View License

When producing a spectrum with fft.m there is no build-in m-file to find the corresponding y-axis. Example; if you want to plot the real Fourier coefficients of a signal (y) with corresponding time (t), write 'plot(freqspace(t),real(fft(y)))'. Created while finding derivatives in the Fourier sense, i.e. dy/dt=ifft(2i*pi*freqspace(t).*fft(y),'symmetric'); Uses ifftshift.m and linspace.m.

Cite As

Ivan van der Kroon (2023). freqspace.m (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Creating and Concatenating Matrices in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes