Let's assume that you have the text file, including numbers of 4000 rows and 2 columns, called "data.txt". Then, try the following commands.
M = dlmread("data.txt");
X = M(:,2);
Then, X is a column vector including just the second column. I wish it is helpful for you.