for loop

2 ビュー (過去 30 日間)
Baba
Baba 2011 年 11 月 14 日
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 日
for i=1:10
mkdir (sprintf('folder_%i',i))
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by