Indexing in for loop
Mostrar comentarios más antiguos
How to use indexing in a for loop?
Respuesta aceptada
Más respuestas (1)
KSSV
el 7 de Jun. de 2021
You can read the documentation instead asking such simple questions.
A = rand(10) ;
[m,n] = size(A) ;
for i = 1:m
for i = 1:n
a = A(i,j)
end
end
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!