function [cps, e]=read_post(filename); % Syntax: [cps, e]=read_post(filename); % % Simple function to read a POST file containing 16 coeffs and energy. % does not analyze the header, the vector size is HARD CODED ! N=16; ff=fopen (filename,'r','ieee-be'); dummy=fread (ff, 12, 'char'); aux=fread (ff, [N+1 inf], 'float'); e=aux (1, :); cps=aux (2:N+1, :); fclose (ff);