Indexing in for loop
Mostra commenti meno recenti
How to use indexing in a for loop?
Risposta accettata
Più risposte (1)
KSSV
il 7 Giu 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
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!