Store one vector range inside another
조회 수: 1 (최근 30일)
이전 댓글 표시
How to store the values of vector x, say from x(50,1) to x(100,1)?
I tried in the following way, but it didn't work.
RES_BLOCK_C=X(385,1):X(1921.1)
Ans:
RES_BLOCK_C = 0 1
댓글 수: 0
답변 (2개)
Jonas
2022년 7월 23일
put the : range expression in the braces to select a range if a vector:
vec=1:10
part=vec(5:8)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!