How to flip an array without using the flip command ?
이전 댓글 표시
- Given an row vector A of any size say n
- I want to create a vector B of Size n with the last element of A as the First elelment of B and the first element of A as the last element of B
- I want to create the array B without using the FLIP command but preferably by a for loop
채택된 답변
추가 답변 (1개)
Walter Roberson
2022년 5월 3일
0 개 추천
If the vector V length is N then the first output is V(N), the second is V(N-1), the third is V(N-2)....
You should be able to generalize to what location the Kth output is from.
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!