Effacer les filtres
Effacer les filtres

How can I get txtscan to read this file?

2 vues (au cours des 30 derniers jours)
David Winthrop
David Winthrop le 21 Sep 2022
Commenté : Star Strider le 21 Sep 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

Réponse acceptée

Star Strider
Star Strider le 21 Sep 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 commentaires
David Winthrop
David Winthrop le 21 Sep 2022
That got it! Thanks
Star Strider
Star Strider le 21 Sep 2022
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Import and Export dans Help Center et File Exchange

Tags

Produits


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by