How can I get txtscan to read this file?

1 visualización (últimos 30 días)
David Winthrop
David Winthrop el 21 de Sept. de 2022
Comentada: Star Strider el 21 de Sept. de 2022
I tried this but it only seems to have read the first line. There are tabs between columns, I believe.
G = textscan(F,'%15.15f\t%15.15f\t%15.15f\t%15.15f\t%15.15f','headerlines',1)
Thanks

Respuesta aceptada

Star Strider
Star Strider el 21 de Sept. de 2022
It would help to have the file to experiment with.
If textscan is only reaidng the first line, consider adding:
'EndOfLine','\r\n'
That has worked for me in the past.
.
  2 comentarios
David Winthrop
David Winthrop el 21 de Sept. de 2022
That got it! Thanks
Star Strider
Star Strider el 21 de Sept. de 2022
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Import and Export en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by