generating a sequence 1,2,3,4,....,n
조회 수: 128 (최근 30일)
이전 댓글 표시
Without using a for loop, how can I generate an index 1,2,3,...,n?
댓글 수: 0
채택된 답변
R.U.F.
2012년 4월 21일
vector=[1:stepsize:n] if the stepsize =1 as in your case, you can disregard it
댓글 수: 1
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!