and am trying to relate fftshift/ifftshift to circular shift.
N = 5
Y = 0:N-1
X = [0 1 2 3 4]
When I fftshift(X), I get
[3 4 0 1 2]
When I ifftshift(X), I get
[2 3 4 0 1]
How do I relate fftshift/ifftshift to circular shift? Is it simply moving the numbers in X about in different directions?
I need to know this as I'm trying to implement these two functions in terms of circular shift in C++, which is a function I already have done.
Many thanks.