Importing alternating data points

9 次查看(过去 30 天)
James Towell
James Towell 2018-12-9
回答: Akira Agata 2018-12-10
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
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};

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by