Creating a cell structure from directory file names
Ältere Kommentare anzeigen
Good afternoon,
I am currently trying to create a cell array of file names using the dir function. For example:
datedir = dir('directorygoeshere');
I want to make my function "datedir" to be a 1xn cell and am having a bit of difficulty choosing the right conversion function. Any help would be greatly appreciated. Thanks!
Antworten (1)
Thorsten
am 6 Sep. 2016
datedir = dir('directorygoeshere');
filenames = {datedir.name}:
Kategorien
Mehr zu File Operations 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!