How to down sample an imported txt file in MATLAB
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Walter Roberson
le 6 Nov 2022
Modifié(e) : Walter Roberson
le 6 Nov 2022
filename = 'as appropriate';
YourTable = readtable(filename);
NewTable = YourTable(1:20:height(YourTable), :);
0 commentaires
Voir également
Catégories
En savoir plus sur Multirate Signal Processing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!