How do I create an array of one column and several lines with only a few characters from the name of my files?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have several files with this structure. At each loop, a file is opened and I would like to write the first 5 characters of the file name in a column. How can I do this?
Example:
03000_20200506_0300.dat
04000_20200506_0300.dat
05000_20200506_0300.dat
06000_20200506_0300.dat
The matrix I would like to obtain:
03000
04000
05000
06000
...
Thanks.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices 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!