[matlab] How to iterate over a column vector in Matlab?