freqspace.m
Version 1.0.0.0 (1.3 KB) by
Ivan van der Kroon
Finds the corresponding frequency array for a homogeneous spaced vector.
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 (https://www.mathworks.com/matlabcentral/fileexchange/31108-freqspace-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Creating and Concatenating Matrices in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |