Azzera filtri
Azzera filtri

Selection of rows and columns of a data set.

1 visualizzazione (ultimi 30 giorni)
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!

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Text Data Preparation in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by