Indexing several Data files to extract a column from each file
Ältere Kommentare anzeigen
Hello,
I have 10000 different *.xls files. I have imported them to my workspace and would like to extract only column 3 from each of the 10000 files. Each file has 10 columns.
Having extracted the 3rd column from each file, I would like to preallocate a matrix where the 10000 columns would be stored as my output file.
Assume that my file has length(15000) as it contains daily precipitation timeseries for a long period.
I appreciate your response.
Zilefac.
3 Kommentare
ASONG ZILEFAC
am 18 Okt. 2012
Matt J
am 18 Okt. 2012
Clarify what "length(15000)" means. Is it the number of rows in the desired output?
ASONG ZILEFAC
am 18 Okt. 2012
Akzeptierte Antwort
Weitere Antworten (1)
Sachin Ganjare
am 18 Okt. 2012
0 Stimmen
With xlsread command you can read partcular column in xls file.
Below link will be useful in this regard:
Hope it helps!!!
Kategorien
Mehr zu Workspace Variables and MAT Files finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!