Selection of rows and columns of a data set.

1 次查看(过去 30 天)
Hi everybody, I have a file in text format (from Physionet.org) having six columns and some hundreds rows. I need all rows but only the second column. What would be please the right command?
Many thanks for your help!

采纳的回答

Jan
Jan 2017-5-21
You have to read all values.
fid = fopen(FileName, 'r');
data = fscanf(fid, '%g', [6, inf]);
fclose(fid);
result = data(2, :);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Text Data Preparation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by