Selection of rows and columns of a data set.
1 view (last 30 days)
Show older comments
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!
0 Comments
Accepted Answer
Jan
on 21 May 2017
You have to read all values.
fid = fopen(FileName, 'r');
data = fscanf(fid, '%g', [6, inf]);
fclose(fid);
result = data(2, :);
0 Comments
More Answers (0)
See Also
Categories
Find more on Text Data Preparation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!