How to extract a part of a given vector and store it in a new vector using loops (for loop) ?
이전 댓글 표시
Given vector: [1 2 3 4 5 6 7 8 9 10];
New vector, let's say: [4 5 6 7].
댓글 수: 2
Azzi Abdelmalek
2013년 10월 21일
편집: Azzi Abdelmalek
2013년 10월 21일
Is it homework? If yes, what have you tried so far?
Zack Shane
2013년 10월 21일
편집: Azzi Abdelmalek
2013년 10월 21일
채택된 답변
추가 답변 (1개)
Image Analyst
2013년 10월 21일
편집: Image Analyst
2013년 10월 21일
data2 = data1(seg1:seg2); % Extract indexes seg1 through seg2 into new vector.
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!