How to read the first term of the file
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Moises Belda
am 7 Jun. 2019
Beantwortet: Walter Roberson
am 7 Jun. 2019
Hi, I would know if someone can help me with this. In the file I have, I only need to read the first column (the one which is supposed to be the time). Anyone know how can I do that?
Thanks
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 7 Jun. 2019
It is not possible to read only that column, but it is possible to have only that column saved.
fid = fopen('force.dat', 'r');
times = cell2mat( textscan(fid, '%f%*[^\n]', 'HeaderLines', 4) );
fclose(fid);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!