Opening a .txt file

4 visualizaciones (últimos 30 días)
Alice Stembridge
Alice Stembridge el 2 de Mayo de 2015
Comentada: Alice Stembridge el 2 de Mayo de 2015
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 comentarios
Geoff Hayes
Geoff Hayes el 2 de Mayo de 2015
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 el 2 de Mayo de 2015
Hi Geoff, sorry about that. Attached is a sample of the text file.

Iniciar sesión para comentar.

Respuesta aceptada

KL
KL el 2 de Mayo de 2015
N = dlmread('filename.txt','\t');
This loads the data in the text file into the matrix N. Check here
  1 comentario
Alice Stembridge
Alice Stembridge el 2 de Mayo de 2015
Hi Kutralingam,
Thank you, this worked a treat.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Standard File Formats en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by