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!