How to down sample an imported txt file in MATLAB
3 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
Walter Roberson
2022 年 11 月 6 日
編集済み: Walter Roberson
2022 年 11 月 6 日
filename = 'as appropriate';
YourTable = readtable(filename);
NewTable = YourTable(1:20:height(YourTable), :);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!