importing data to form a matrix
Ältere Kommentare anzeigen
I have data in 2500 files with filenames like 1.txt, 2.txt etc. and each file has one column of data. I want one matrix that has all these columns.
I used A1 = importdata('1.txt') to read in one file
but how can I put filenames in loop to read all of them and get a matrix out of it?
Antworten (1)
Image Analyst
am 14 Apr. 2013
0 Stimmen
See the FAQ for code examples: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
Kategorien
Mehr zu Startup and Shutdown 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!