Function to calculate the DFT of a signal in the time domain (given in its discrete samples)
%DFT compute the Discrete Fourier Transform of N samples
% calling: [H,W] = dft (h, N)
% h: input vector of finite length, L
% N:frequency bandwidth on (-pi, pi) with condition: N >= L
% W:DFT bandwidth
% H: Frequency response
Cite As
Behind The Sciences (2024). dft(h, N) (https://www.mathworks.com/matlabcentral/fileexchange/55885-dft-h-n), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Transforms > Discrete Fourier and Cosine Transforms >
Find more on Discrete Fourier and Cosine Transforms 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 |