Extracting data from a vector

26 ビュー (過去 30 日間)
Daniel
Daniel 2015 年 11 月 6 日
コメント済み: Stephen23 2015 年 11 月 6 日
Hello, I have a vector (called time) with 1370000 numbers in it. I want to extract data from line 1200 to line 1500 and put it in a my new vector called NewTime I have tried NewTime=[time(1200):time(1500)] but that is not what I am after. This gives me a new vector like, NewTime=1200, 1201, 1202... etc up to 1500.
What is the correct and easy way to do it? Thank you

採用された回答

Guillaume
Guillaume 2015 年 11 月 6 日
NewTime = time(1200:1500)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by