How to number permutation values, 11, 12, 13, 14, etc in "for" loop to be sequentially printed as 1, 2, 3 etc?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ismail Qeshta
am 12 Nov. 2017
Kommentiert: Ismail Qeshta
am 12 Nov. 2017
Hi, I am running my simulation using "for" loop. The problem is that I have "i" and "j" orders on which I refer to each value, like 11, 12, 13, 14, etc. I need to, instead, mark them as 1, 2, 3, 4, 5, etc. Is there anyway to do that? Thank you very much.
2 Kommentare
Walter Roberson
am 12 Nov. 2017
So for i = 1, just j should be printed? And what should be printed when i = 2?
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!