Commit 9f750c85 authored by Simone Maria Liuzzo's avatar Simone Maria Liuzzo

different number of headerlines for input file

parent 00fb845d
......@@ -78,7 +78,17 @@ end
inddev = find(atgetcells(r,'Device'))';
devnames = atgetfieldvalues(r,inddev,'Device');
A = textscan(fopen(fullfile(a,[b c]),'r'),'%s %f','HeaderLines',6);
% count header lines
fid = fopen(fullfile(a,[b c]),'r');
tline = fgetl(fid);
headlines = 0;
while tline(1)=='#'
headlines = headlines+1;
tline = fgetl(fid);
A = textscan(fopen(fullfile(a,[b c]),'r'),'%s %f','HeaderLines',headlines);
devfile = cellfun(@(a)fileparts(a),A{1},'un',0);
strfile = A{2};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment