How to create a folder under program generated folder name?
조회 수: 4 (최근 30일)
이전 댓글 표시
One module of my project auto-generates the folder name but I am not able to create folder under that auto generated name. mkdir is not working.... please help.
댓글 수: 1
Evan
2013년 8월 9일
What do you mean by "mkdir is not working"? Are you getting an error? Is the name incorrect?
채택된 답변
per isakson
2013년 8월 9일
편집: per isakson
2013년 8월 9일
This works for me (R2013a)
folder_name = 'name_of_subfolder'; % this subfolder does not exist
parent_folder = 'h:\m\cssm'; % this folder exists
mkdir( parent_folder, folder_name )
What have you tried and what error message did you get?
.
Or, if neither folder_name nor parent_folder exists
folder_name = 'name_of_subfolder'; % this subfolder does not exist
parent_folder = 'h:\m\cssmXX'; % this folder does not exist
mkdir( fullfile( parent_folder, folder_name ) )
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!