FFT算法MATLAB实现与测试

本文介绍了如何手动实现FFT算法,并通过MATLAB进行详细实现与测试,参考了《computational frameworks for the fast fourier transform》。

开发板推荐:天空星STM32F407VET6开发板

超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印

以前从没手动实现过FFT算法,实现了一下.

参考<computational frameworks for the fast fourier transform> 



% 2012.3.10
function test
clear;
clc;
close all;
nFFT=2^10;
N=nFFT;
t=linspace(0,1,N)';
fs=N;
x=sin(2*pi*300*t);


freq=fs*((1:nFFT)-1)/nFFT;  % bug fixed 1:nFFT
figure;
disp('time[Matlab fft]:');
tic
y0=fft(x,nFFT);
toc
plot(freq,abs(y0));
title('fft');

disp('time[recursive]:');
tic
y=my_fft(x,nFFT);
toc
figure;
plot(freq,abs(y));
title('my-fft');

figure(3);
plot(freq, abs(y-y0));
title('my-fft-error');

disp('time[inplace]:');
tic
y_inplace=my_ffy_inplace(x,nFFT);
toc
figure(4);
plo

开发板推荐:天空星STM32F407VET6开发板

超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印

Table of Contents 1 Preface: Fast Fourier Transforms ................................................ 1 2 Introduction: Fast Fourier Transforms .......................................... .5 3 Multidimensional Index Mapping ............................................... 7 4 Polynomial Description of Signals .............................................. 21 5 The DFT as Convolution or Filtering .......................................... 27 6 Factoring the Signal Processing Operators .................................... 39 7 Winograd's Short DFT Algorithms ............................................ 43 8 DFT and FFT: An Algebraic View ............................................. 6.5 9 The Cooley-Tukey Fast Fourier Transform Algorithm ........................ 79 10 The Prime Factor and Winograd Fourier Transform Algo rithms.......................................................................... 97 11 Implementing FFTs in Practice .............................................. 109 12 Algorithms for Data with Restrictions ....................................... 137 13 Convolution Algorithms ....................................................... 139 14 Comments: Fast Fourier Transforms ......................................... 1.53 15 Conclusions: Fast Fourier Transforms ....................................... 1.57 16 Appendix 1: FFT Flowgraphs ................................................ 1.59 17 Appendix 2: Operation Counts for General Length FFT .................. 16.5 18 Appendix 3: FFT Computer Programs ...................................... 167 19 Appendix 4: Programs for Short FFTs ...................................... 207 Bibliography....................................................................... 210 Index............................................................................... 242 Attributions........................................................................244
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值