Circshift not working for values of zero.
이전 댓글 표시
I have;
x = [0 0 3 3]
I want this to become
x = [0 3 3 0]
When I circshift
x_2 = circshift(x,2)
it equalls [0 0 3 3].
Am I doing the right circshift? NOTE I want it reordered with the second element first keeping the sequence.
채택된 답변
추가 답변 (1개)
Azzi Abdelmalek
2014년 3월 26일
x_2=circshift(x,[0 -1])
카테고리
도움말 센터 및 File Exchange에서 Additional Math and Discrete에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!