How to down sample an imported txt file in MATLAB

3 ビュー (過去 30 日間)
Peter Kimani
Peter Kimani 2022 年 11 月 6 日
編集済み: Walter Roberson 2022 年 11 月 6 日
I have a txt file that contains data (a 150000x3 table) and I need to downsample the data by an index of 1:20:length(time) to obtain the new vectors, however I do not know how to accomplish this procedure.

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 11 月 6 日
編集済み: Walter Roberson 2022 年 11 月 6 日
filename = 'as appropriate';
YourTable = readtable(filename);
NewTable = YourTable(1:20:height(YourTable), :);

カテゴリ

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