create non uniform increment vector
조회 수: 6 (최근 30일)
이전 댓글 표시
hi
how can I in a single command creat this vector:
a=12345678910987654321
thanks
댓글 수: 0
답변 (2개)
Robin Kirsch
2020년 6월 12일
편집: Robin Kirsch
2020년 6월 12일
a = [1:10 9:-1:1]
a =
Columns 1 through 13
1 2 3 4 5 6 7 8 9 10 9 8 7
Columns 14 through 19
6 5 4 3 2 1
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!