Get single-sided spectrum from time signal and viceversa

Codes to get single-sided frequency domain signal and time-domain signal from the single-sided frequency-domain signal.
252 Downloads
Updated 23 Mar 2021

View License

Attached are two simple functions to perform the basic operations in every-day signal processing. The function 'dofft' takes a time-domain signal and Sampling frequency and returns a complex vector of the single-sided spectrum. The function 'doifft' takes the single-sided spectrum (complex) and returns the original time-domain signal. An example is also attached for beginners.

Cite As

Muhammad Waqar (2024). Get single-sided spectrum from time signal and viceversa (https://www.mathworks.com/matlabcentral/fileexchange/89182-get-single-sided-spectrum-from-time-signal-and-viceversa), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0