I would recommend using textscan
.
Something like:
in = textscan('sample.ptx','%f %f %f %f %f %f %f','HeaderLines',2)
You can specify a number of header lines to skip using 'HeaderLines'
. The %f
refers to the format of the input data. Hope that helps.