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: Fast Fourier Transform fft2
Replies: 1   Last Post: Jan 7, 2009 7:53 AM

Advanced Search

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

Posts: 8
Registered: 1/7/09
Fast Fourier Transform fft2
Posted: Jan 7, 2009 6:25 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

There seems to be something wrong with the fft2 function on matlab.
This is a simpler file of what im trying to do. It doesn't work properly when the fft2 function is added in. Can anyone see why? Does anyone have another fast Fourier Transform file?

C=complex(rand(128),rand(128));
F=real(fft2(C));

max=100;

NewF=ones(128);
for x=1:128
for y=1:128
r=sqrt(x.^2 + y.^2);
if r>max
NewF(x,y)=0;
end

if r<=max
NewF(x,y)=F(x,y);
end
end
end

imagesc((abs(NewF).^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.