MATLAB: Creating a 10 x 1 matrix that counts

matrixmatrix manipulation

Hey i want to create a 10 x 1 matrix with the values 0 to well 9 in it. So basically it does a count. I want to get x=[0;1;2;3;4;5;6;7;8;9]; Any help?

Best Answer

iwant = 0:9 ;