I am given the problem:
I know that the pseudocode for when a sequence is shifted, it's Fourier transform will be twisted as a opposed to when the sequence is not shifted:
F{x[*-n], exp(-i*2*pi*f*n)*X(f)}
So I tried working the above problem with the following code:
Now, I took a look at the problem again, and now I become confused. I chose an arbitrary equation for x
[*] and twisted this equation by shifting it (in terms of star). The graphs don't seem correct.
Could someone please help me?
I know that the pseudocode for when a sequence is shifted, it's Fourier transform will be twisted as a opposed to when the sequence is not shifted:
F{x[*-n], exp(-i*2*pi*f*n)*X(f)}
So I tried working the above problem with the following code:
Rich (BB code):
% (a)
star=-10:10; f=-1/2:0.01:1/2-0.01; % Star & frequency intervals
% Let x
[*] be bbox
x=(abs(star-2)<=5);
y=exp(i*2*pi*2*star).*x;
X=x*exp(-i*2*pi*star'*f);
Y=y*exp(-i*2*pi*star'*f);
subplot(221),plot(star,x,'o'),xlabel('*'),ylabel('x
[*]')
subplot(222),plot3(f,real(X),imag(X))
subplot(223),plot3(star,real(y),imag(y))
subplot(224),plot3(f,real(Y),imag(Y))
[*] and twisted this equation by shifting it (in terms of star). The graphs don't seem correct.
Could someone please help me?
Attachments
-
45 KB Views: 30