function dataCell=f1(fileWithPath,fileType)
fid=fopen(fileWithPath);
switch fileType
    case 'bin'
        dataCell={fread(fid,inf,'double')};
    case 'text'
        dataCell={fscanf(fid,'%f',inf)};
    otherwise
        dataCell={};
end
fclose(fid);    
end