Importing alternating data points
显示 更早的评论
Im trying to import every 100th value from a txt file with 4 lines of header from the 4th column within that file.
Appreciate any help.
回答(1 个)
Akira Agata
2018-12-10
Like this? Using this code, you can extract every 100th value (100th, 200th,...etc) from the 4th column.
T = readtable('Dataset1_1.txt','HeaderLines',4,'ReadVariableNames',false);
data = T{100:100:end,4};
类别
在 帮助中心 和 File Exchange 中查找有关 Large Files and Big Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!