%---------------------------------------------------------
% fread1col
%---------------------------------------------------------
% read in a one column datafile
%
% input:	infile	string	filename to read
% output:	x		real(n)	1st column
% 		n		int		number of datapoints
%
% usage:	[x,n] = fread1col(infile)
%
%---------------------------------------------------------
% N.Teanby      27/9/2013	Original version
%---------------------------------------------------------
function [x,n] = fread2col(infile)

data = load(infile);
x = data(:,1);
n = length(x);


