How to enter extensive data to cell array?
Mostra commenti meno recenti
I am trying to store some extensive data to a cell array with specification:
- {1x1}, {1}[... x 5]
- Take the first five columns
- Ignore the first two lines and take all the rows following
- Ignore the white spaces character ('') between columns
- Store the data on the variable "Time"
The data should appear on the Workspace like this,
Time =
2013 2 23 21 30
%This is just one row of the data
The data is in this link,
So far I have proceed the following way,
function Data = SJ
fid = fopen( 'SJ.txt' );
Data = textscan( fid, '%d%d%d%d%d' ...
, 'Delimiter' , ' ' ...
, 'HeaderLines' , 2 ...
);
fclose( fid );
end
Could you please help?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Workspace Variables and MAT Files in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!