How can I get txtscan to read this file?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
David Winthrop
il 21 Set 2022
Commentato: Star Strider
il 21 Set 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
0 Commenti
Risposta accettata
Star Strider
il 21 Set 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Import and Export in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!