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!