Indexing in for loop
Ältere Kommentare anzeigen
How to use indexing in a for loop?
Akzeptierte Antwort
Weitere Antworten (1)
KSSV
am 7 Jun. 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
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!