Opening a .txt file

4 次查看(过去 30 天)
Alice Stembridge
Alice Stembridge 2015-5-2
Hi there,
I was wondering if I could have some help reading the attached .txt file. From this I would like to create and array in MATLAB with the same number of rows and columns.
Thanks
  2 个评论
Geoff Hayes
Geoff Hayes 2015-5-2
Alice - why have you attached a zip file? Please just attach the text file or (if it is too large) just a sample of the data found within it.
Alice Stembridge
Alice Stembridge 2015-5-2
Hi Geoff, sorry about that. Attached is a sample of the text file.

请先登录,再进行评论。

采纳的回答

KL
KL 2015-5-2
N = dlmread('filename.txt','\t');
This loads the data in the text file into the matrix N. Check here

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Standard File Formats 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by