Reading a large text file with 3652500 rows and 8 columns

2 ビュー (過去 30 日間)
Damith
Damith 2014 年 5 月 22 日
コメント済み: per isakson 2014 年 5 月 22 日
Hi,
I have a text file without headers.I have 3652500 rows in the text file. How can I read this text file using MATLAB. There is a space column before first column. Sample of the file is attached to see.

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 5 月 22 日
data=importdata('sample.txt')
  2 件のコメント
Damith
Damith 2014 年 5 月 22 日
This resulted,
data = 1x1 cell in that cell @BCDE is written. Data matrix should ne 3652500 x 8.
Any idea?
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 5 月 22 日
try
out=data{1}

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

カテゴリ

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