Matlab Help naming folder according to user input,

조회 수: 4 (최근 30일)
Ethar Alkamil
Ethar Alkamil 2019년 2월 27일
댓글: Ethar Alkamil 2019년 2월 27일
The problem is that the created folder carry the variable name (B) not its value 'Project', I am wondering if you can help me to fix that, please
Here is my Code:
A = 'Project';
B = convertCharsToStrings(A);
mkdir B

채택된 답변

Walter Roberson
Walter Roberson 2019년 2월 27일
  댓글 수: 4
Walter Roberson
Walter Roberson 2019년 2월 27일
mkdir( fullfile(A, B) )
Ethar Alkamil
Ethar Alkamil 2019년 2월 27일
Wonderful
Thanks Walter

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by