Creating a cell structure from directory file names

23 visualizzazioni (ultimi 30 giorni)
Simpson
Simpson il 6 Set 2016
Risposto: Thorsten il 6 Set 2016
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!

Risposte (1)

Thorsten
Thorsten il 6 Set 2016
datedir = dir('directorygoeshere');
filenames = {datedir.name}:

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by