i'd like to create 10 folders, named folder_1, folder_2....folder_10. Please help me fix the syntax.
for i=1:10
mkdir ('folder_',i) how do I properly use the i index in this case?
end

 채택된 답변

Grzegorz Knor
Grzegorz Knor 2011년 11월 14일

0 개 추천

for i=1:10
mkdir (sprintf('folder_%i',i))
end

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2011년 11월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by