Effacer les filtres
Effacer les filtres

How to read the first term of the file

1 vue (au cours des 30 derniers jours)
Moises Belda
Moises Belda le 7 Juin 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

Réponse acceptée

Walter Roberson
Walter Roberson le 7 Juin 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);

Plus de réponses (0)

Catégories

En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by