필터 지우기
필터 지우기

structuring of folder name

조회 수: 2 (최근 30일)
prashant singh
prashant singh 2016년 7월 10일
답변: Image Analyst 2016년 7월 10일
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.

채택된 답변

Image Analyst
Image Analyst 2016년 7월 10일
Try this:
folder = 'C:/document/data/data-1/'
individualFolders = strsplit(folder, '/')
folder =
C:/document/data/data-1/
individualFolders =
'C:' 'document' 'data' 'data-1' ''

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by