How to read a part of txt file using readtable(''myfile.txt")

5 ビュー (過去 30 日間)
Arseniy Sleptsov
Arseniy Sleptsov 2019 年 5 月 16 日
回答済み: KSSV 2019 年 5 月 16 日
Hello,
There is a large tabular data in txt, e.g. 10000 rows and 20 columns.
I would like to read in matlab environment only the last 100 rows instead reading whole file and taking from it last 100. I am aiming at speeding up Matlab, because it takes too long when every time reading the tabular data which is actually increasing (at the beginning the data is not massive).

回答 (1 件)

KSSV
KSSV 2019 年 5 月 16 日
Read about textscan. Here you can specify the header lines........get the position of your line fromw hich you want to read......and specify it as header lines.

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by