read file txt with strings and numbers
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Khoder Makkawi
il 11 Set 2023
Commentato: Star Strider
il 11 Set 2023
blablabla
aaa 10 test 20
bbb 11 test1 21
ccc 12 test2 22
I have this data in a file .txt and I want to read the file.
I tried the following code but it is not working as I want to:
fid = fopen('test','r');
testData = fscanf(fid, '%s %d %s %d',[2 inf]);
fclose(fid);
0 Commenti
Risposta accettata
Star Strider
il 11 Set 2023
2 Commenti
Star Strider
il 11 Set 2023
‘How I can skip it ?’
Consider using the 'HeaderLines' name-value pair with readtable.
.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Text Files 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!