How to number permutation values in "for" loop to be sequentially printed as 1, 2, 3 etc?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ismail Qeshta
le 20 Juin 2018
Commenté : Ismail Qeshta
le 20 Juin 2018
Hi. I have
a = [1 2 3]
b = [1 2 3]
c = [1 2 3]
I am running for loop for i = 1:3, j= 1:3 and m = 1:3. I need to print the output in terms of 1, 2, 3, 4, etc, instead of 111, 112, 113, 114, etc.
0 commentaires
Réponse acceptée
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!