Hello, Is there any command to shift left or right a vector ? thanks for your reply.
patrice: <SNIP ...Is there any command to shift left or right a vector... a hint: help circshift us
Try these: 4.1 Vectors To shift and rotate the elements of a vector, use X([ end 1:end-1 ]); % shift right/down 1 element X([ end-k+1:end 1:end-k ]); % shift right/down k elements X([ 2:end 1 ]); % shift left/up 1 element X([ k+1:end 1:k ]); % shift left/up k elements Try this link: <http://www.cs.huji.ac.il/course/2003/impr/matlab/MatlabTip.pdf> -TRO patrice wrote: > > > Hello, > Is there any command to shift left or right a vector ? > > thanks for your reply.