How to read in data in matlab from text files in a folder automatically?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I have a folder with text files that contains 40 columns with first row containing headers and rest of the rows with various values. I want to write a code in which we select just the folder and matlab read in data from the text files, imports each column as column vector and saves the files with text file name.
Can anyone guide me how to approach this problem to generate the code?
2 Kommentare
Image Analyst
am 7 Nov. 2019
I imagine he did, using the code from the FAQ, like in the link I gave below. If you need to also, I recommend that you also look in the FAQ instead of waiting who-knows-how-long for Pratik to answer you.
Antworten (2)
Image Analyst
am 6 Jun. 2018
See two code snippets in the FAQ: https://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
0 Kommentare
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!