How to index random points from vector

1 回表示 (過去 30 日間)
Don Singh
Don Singh 2015 年 10 月 7 日
回答済み: Andrei Bobrov 2015 年 10 月 7 日
I have a vector "faa" of size 64 rows X 1 column and wish to extract the first point and a range of 22:42nd data points. How do I do this

採用された回答

Star Strider
Star Strider 2015 年 10 月 7 日
To combine them all in one ‘Result’ vector:
Result = [faa(1); faa(22:42)];
Otherwise:
faa_1 = faa(1);
faa_22_42 = faa(22:42);

その他の回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2015 年 10 月 7 日
faa([1,22:42])

カテゴリ

Help Center および File ExchangeSpecial Characters についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by