Indexing in for loop
Afficher commentaires plus anciens
How to use indexing in a for loop?
Réponse acceptée
Plus de réponses (1)
KSSV
le 7 Juin 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
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!