Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: speed of fft(x,N)
Replies: 4   Last Post: Mar 28, 2014 9:37 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ha

Posts: 93
Registered: 11/30/09
speed of fft(x,N)
Posted: Mar 27, 2014 2:57 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

it is said that fft(x,N) is optimal when N is power of 2.
but I made a test

x=rand(72000,1); n=2^17; fft(x);
tic; for ii=1:100, X1 = fft(x,n);end, toc

tic; for ii=1:100, X2 = fft(x,82944); end, toc


So, it appears it's not necessary to set N to be power of 2.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.