structuring of folder name
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
prashant singh
am 10 Jul. 2016
Beantwortet: Image Analyst
am 10 Jul. 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 Kommentare
Akzeptierte Antwort
Image Analyst
am 10 Jul. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu String Parsing 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!