How can I double a vector and to the second part of it add a number?
조회 수: 5 (최근 30일)
이전 댓글 표시
lets say i have a vector which is R=[1; 2; 3; 4; 5; 6; 7; 8; 9; 10] size 10x1
I want to double that vector in size and repeat the numbers but add 360 to them.
So my new R would look like this:
R=[1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 360+1; 360+2; 360+3; 360+4; .....] size 20x1
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2014년 4월 14일
편집: Azzi Abdelmalek
2014년 4월 14일
R=[1; 2; 3; 4; 5; 6; 7; 8; 9; 10]
R=[R;R+360]
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!