Point coordinates generation using for loop
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kevin Andrews
le 3 Juil 2021
Réponse apportée : Image Analyst
le 3 Juil 2021
Starting at
a = [0, 0]
I am trying to create a for loop to make i and j in "a" to do the following: [1,0]..[2,0]..........[9,0]
[1,1] [2,1]...............[9,1]
[1,2]..[2,2]............[9,2] and so on
0 commentaires
Réponse acceptée
Image Analyst
le 3 Juil 2021
OK, so did you do it? Do you have any questions? I imagine you came up with something like this:
for j = 0 : 2
for k = 1 : 9
a = [k, j]
end
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!