Difficulty with nested loop and arrays

I'm fairly new to matlab. I'm just started learning about nested loops and need some help. I have an array of random numbers and i need to create a nested loop to read the random data one by one by row and then columns and assign the data to a new variable. Can anyone help me with this? Thanks.

 Respuesta aceptada

Jos (10584)
Jos (10584) el 21 de Abr. de 2016
for RowIndex = 1:...
for ColIndex = 1:...
CurrentValue = MyMatrix(RowIndex,ColIndex)
end
end
I leave it for you to figure out what should be at the ellipses. Hint:
help size

Más respuestas (0)

Categorías

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

Etiquetas

Preguntada:

el 21 de Abr. de 2016

Respondida:

el 21 de Abr. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by