You can use the function dlmread():
data = dlmread(file, sep, r0, c0)
Read the matrix data from a text file which uses the delimiter sep between data values.
If sep is not defined the separator between fields is determined from the file itself.
Given two scalar arguments r0 and c0, these define the starting row and column of the data to be read. These values are indexed from zero, such that the first row corresponds to an index of zero.
So you can simply use the one-liner:
data = dlmread('input_file', ' ', 1, 0);
By calling the function with r0 set to 1, you're effectively skipping the first line, which contains the (now useless) number of rows.