The following is a straightforward implementation of reading .TF files into Matlab, then writing them to a Microsoft Excel spreadsheet.
Code:
function tfparse(filename)
% This program parses a .tf file (output from Movalyzer) and saves the
% data in an Excel readable file.
fin = fopen(filename,'r');
% Read line-by-line. Number of parameters is fixed for simplicity.
for i=1:18
% Strip the header and append
header = strread(fgetl(fin),'%s','delimiter',' ');
total_dat(1,i) = header(2);
% Read data and form array
total_dat(2:1+str2num(cell2mat(header(1))),i) = strread(fgetl(fin),'%s','delimiter',' ');
end
% Open output file and write data
xlswrite([filename(1:end-3) '.xlsx'],total_dat);
fclose('all');