If the right-hand side of the assignment is a matrix, then in each iteration the variable is assigned subsequent columns of this matrix.
some_matrix = [1, 2, 3; 4, 5, 6]; % 2 by 3 matrix
for some_column = some_matrix
display(some_column)
end
(The row vector version is a normal case of this, because in Matlab a row vector is just a matrix whose columns are size 1.)
The output would display
1
4
2
5
3
6
i.e. each column of the iterated matrix displayed, each column printed on each call of display
.