structuring of folder name
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
prashant singh
il 10 Lug 2016
Risposto: Image Analyst
il 10 Lug 2016
how can i divide the path like C:/document/data/data-1/ into a structure which contain name of individual folder like {document, data, data-1} or just access the last folder into a variable like x = data-1.
0 Commenti
Risposta accettata
Image Analyst
il 10 Lug 2016
Try this:
folder = 'C:/document/data/data-1/'
individualFolders = strsplit(folder, '/')
folder =
C:/document/data/data-1/
individualFolders =
'C:' 'document' 'data' 'data-1' ''
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!