davyzhu
Advanced Member level 1
matlab shift vector
Hi all,
How to shift the element in vector?
For example, vec=[1 2 3 4 5 6 7 8 9 10];
vec2=right_shift(vec,3);
then shift the vec by 3 time
vec2=[8 9 10 1 2 3 4 5 6 7].
Any easy approach will be appreciated!
Best regards,
Davy
Hi all,
How to shift the element in vector?
For example, vec=[1 2 3 4 5 6 7 8 9 10];
vec2=right_shift(vec,3);
then shift the vec by 3 time
vec2=[8 9 10 1 2 3 4 5 6 7].
Any easy approach will be appreciated!
Best regards,
Davy