Creating variables with a loop

Hi,
I'm trying to do something like this, but it obviously doesn't work. Any suggestions?
for i 1:5
partialmatrix_i (1,whatever) = hugematrix(1,whatever*i)
end
output:
partialmatrix_1
partialmatrix_2
partialmatrix_3
partialmatrix_4
partialmatrix_5

 Respuesta aceptada

Más respuestas (1)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

Guy
el 26 de Mzo. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by