Extract data at regular intervals

9 ビュー (過去 30 日間)
Dirk
Dirk 2013 年 6 月 21 日
コメント済み: B Jadav 2020 年 7 月 23 日
Hi There,
I have 2 columns of data, time and concentration. The time data are at intervals of about 5 seconds and there is a corresponding concentration measurement at each time. There are about 20,000 time measurements and I want to reduce this to a more manageable amount. How can I obtain say every 10th time x concentration value?
Thanks

採用された回答

Wayne King
Wayne King 2013 年 6 月 21 日
編集済み: Wayne King 2013 年 6 月 21 日
Are you asking for just
X = ones(2e4,2);
Y = X(1:10:end,:);
Y is a two-column matrix containing every 10-th measurement (or measurements taken every 50 seconds).
  2 件のコメント
Dirk
Dirk 2013 年 6 月 21 日
Thanks
B Jadav
B Jadav 2020 年 7 月 23 日
hi can you share your program

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by