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 件のコメント

madhan ravi
madhan ravi 2018 年 12 月 9 日
upload the text file
James Towell
James Towell 2018 年 12 月 9 日
There you go

サインインしてコメントする。

回答 (1 件)

Akira Agata
Akira Agata 2018 年 12 月 10 日

0 投票

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 ExchangeLarge Files and Big Data についてさらに検索

タグ

質問済み:

2018 年 12 月 9 日

回答済み:

2018 年 12 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by