Borrar filtros
Borrar filtros

for loop

1 visualización (últimos 30 días)
Baba
Baba el 14 de Nov. de 2011
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

Respuesta aceptada

Grzegorz Knor
Grzegorz Knor el 14 de Nov. de 2011
for i=1:10
mkdir (sprintf('folder_%i',i))
end

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by