In the MATLAB, a matrix cell is numbered by its row and column position. I wanted to index by the integer number.
Consider a (3,4) matrix
for i=1:length(3)
for j =1:length(4)
fprint(i,j)
end
end
1,1
1,2
.
.
3,4
However, the output I am expecting when iterating through each cell is given by
for i=1:length(3)
for j =1:length(4)
fprint(i+j+something)
end
end
1
2
3
4
.
.
12