Ahmet - if mat is your matrix, then to get the first two colums (and all rows) you could do
mat(:,1:2)
which would give you
7 8
12 10
Note how the first colon indicates that we want all rows, and the 1:2 means that we want the columns one through two.