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.

2 Kommentare

madhan ravi
madhan ravi am 9 Dez. 2018
upload the text file
James Towell
James Towell am 9 Dez. 2018
There you go

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Akira Agata
Akira Agata am 10 Dez. 2018

0 Stimmen

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};

Kategorien

Mehr zu Large Files and Big Data finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 9 Dez. 2018

Beantwortet:

am 10 Dez. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by