You can use the importdata function to read the data from the input file and then store the first column (assuming it is a column vector) in the variable x using the (:,1) notation. Here's an example code snippet:
main.m47 chars3 lines
Note that if the input file contains column headers, you should use the textdata output of importdata to store them.
gistlibby LogSnag