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일

0 개 추천

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

댓글 수: 1

Alice Stembridge
Alice Stembridge 2015년 5월 2일
Hi Kutralingam,
Thank you, this worked a treat.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2015년 5월 2일

댓글:

2015년 5월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by