CODE:
Without built in function:
x_n=input('Enter the sequence:');
m=input('Enter required amount of shift:');
N=length(x_n);
X_K=fft(x_n,N);
K=0:N-1;
a=exp(-1i*((2*pi)/N).*K*m);
X2_K=X_K.*a;
x2_n=ifft(X2_K)
With built in function:
y_n=circshift(x_n,3)
Without built in function:
x_n=input('Enter the sequence:');
m=input('Enter required amount of shift:');
N=length(x_n);
X_K=fft(x_n,N);
K=0:N-1;
a=exp(-1i*((2*pi)/N).*K*m);
X2_K=X_K.*a;
x2_n=ifft(X2_K)
With built in function:
y_n=circshift(x_n,3)
Circular shift in MATLAB(with and without circshift) camera iphone 8 plus apk | |
8 Likes | 8 Dislikes |
1,066 views views | 1.03K followers |
People & Blogs | Upload TimePublished on 3 Oct 2018 |
Không có nhận xét nào:
Đăng nhận xét