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.
2 件のコメント
回答 (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!