フィルターのクリア

How to read the first term of the file

1 回表示 (過去 30 日間)
Moises Belda
Moises Belda 2019 年 6 月 7 日
回答済み: Walter Roberson 2019 年 6 月 7 日
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

採用された回答

Walter Roberson
Walter Roberson 2019 年 6 月 7 日
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 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by