i am trying to read a .dat file but i dont getting any data?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Vishnu Dhakad
il 7 Mag 2018
Commentato: Vishnu Dhakad
il 14 Mag 2018
my code is
fid = fopen('20180426_TRH.dat');
A = fscanf(fid, '%c, %f/%f/%f, %f:%f:%f, %f, %f, %f, %f, %f/%f/%f, %f:%f:%f, %f, %f, %f, %f, %f');
fclose(fmlds);
I want to read this file in 1*rows matrics. file format is attached. please help me
0 Commenti
Risposta accettata
Walter Roberson
il 7 Mag 2018
Use textscan() instead of fscanf() .
Also, you need to open the correct file name. And you need to fclose(fid)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Large Files and Big Data 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!