Importing alternating data points
9 次查看(过去 30 天)
显示 更早的评论
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};
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!