Filter löschen
Filter löschen

i am trying to read a .dat file but i dont getting any data?

2 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 7 Mai 2018
Use textscan() instead of fscanf() .
Also, you need to open the correct file name. And you need to fclose(fid)

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Export finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by