matlab code to compute the DFT using just O(N (P + Q)) operations, instead of the O(N ^2 ) operations?
显示 更早的评论
Suppose that the signal length N can be factored as N = P Q where P; Q > 1.write a script that can compute the DFT using just O(N (P + Q)) operations, instead of theO(N^2) operations required for the direct implementation.
回答(1 个)
David Young
2014-9-9
0 个投票
Just use the fft function. It's almost certainly as good as you'll get.
2 个评论
TONY gracious
2014-9-9
David Young
2014-9-9
Yes, fft does factorisation so achieves what you want, and more in fact.
类别
在 帮助中心 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!