Hello, I want a matrix where I get for the first column(1,2,3,4,5,6,7,8,9,....n) and second column is NumbCTImgs. here is my code CT_ID=zeros(NumbCTImgs,1) for i= 1:NumbCTImgs CT_ID(i)=Imgs.CT(i).Tags.PatientID; right now I get a matrix (261X1) 4 5 6 7 I want a matrix 1 4 2 5 3 6 4 7 How can I change my code to accomplish this?