The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.