Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X = [-2:2];
- fftshift(X);
- ifftshift(X);
- Y = fftshift(fftshift(X));
- Z = ifftshift(fftshift(X));
- isequal(X, Y)
- isequal(X, Z)
- ==================================
- close all; clear all;
- xb = [1 2 3 4 5 6 5 4 3 2 1]
- figure;
- subplot(2, 1, 1);
- plot([-5 : 5], xb);
- ylabel('xb');
- x = ifftshift(xb);
- X = fft(x);
- Xb = fftshift(X);
- subplot(2, 1, 2);
- plot([-5 : 5], Xb);
- xlabel('Xb');
- ==================================
- close all; clear all;
- xb = [1 2 3 4 5 6 5 4 3 2 1]
- figure;
- subplot(2, 1, 1);
- plot([-5 : 5], xb);
- ylabel('xb');
- x = ifftshift(xb);
- X = ifft(x);
- Xb = fftshift(X);
- subplot(2, 1, 2);
- plot([-5 : 5], Xb);
- xlabel('Xb');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement