MATLAB: How to number permutation values, 11, 12, 13, 14, etc in “for” loop to be sequentially printed as 1, 2, 3 etc

for looploopingloops

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.

Best Answer

(i-1)*3 + j
Related Question