Vector manipulation by changing order or numbers in a vector.
조회 수: 5 (최근 30일)
이전 댓글 표시
I have the vector
a = [4 5 7 8 9 10]
I would like to make a new vector with the second element first and the first element last. How could I do this? Also I would like the same manipulation to occur regardless if the numbers or amount of numbers change.
Thanks,
채택된 답변
Azzi Abdelmalek
2014년 3월 24일
편집: Azzi Abdelmalek
2014년 3월 24일
Edit
a = [4 5 7 8 9 10]
b=circshift(a,[0 -1])
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!