Discrete Fourier Transform function to avoid sampling errors

版本 1.0.0.0 (970 字节) 作者: Behind The Sciences
DFT function that takes an input signal of period N and sampling frequency fs.
83.0 次下载
更新时间 2016/4/8

查看许可证

DFT function that takes an input signal of period N and sampling frequency fs.
The output is a vector that contains the module of its Fourier Transform. To do this, we have used the Matlab functions: fft and fftshift.
Also, in this function, we have restricted the signal period to be a multiple of 2 and greater than the sequence length. We have used the Matlab functions error and length to detect and throw errors in case this restrictions aren't met.
There is also a function to create a sine signal which can be used as an input in the DFT function.

MORE INFO AND EXAMPLES: http://www.behindthesciences.com/signal-processing/fouriertransformmatlabtutorial

引用格式

Behind The Sciences (2024). Discrete Fourier Transform function to avoid sampling errors (https://www.mathworks.com/matlabcentral/fileexchange/56443-discrete-fourier-transform-function-to-avoid-sampling-errors), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Discrete Fourier and Cosine Transforms 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0