Commit 4c18bfea authored by MichelJuillard's avatar MichelJuillard
Browse files

allow for missing column headings in XLS(X) data file. Such a column

can't be used for data, but it happens that dates for example don't
have a column headings
parent 18af0655
......@@ -88,6 +88,11 @@ switch (extension)
case { '.xls', '.xlsx' }
[num,txt,raw] = xlsread(fullname,xls_sheet,xls_range); % Octave needs the extension explicitly
for i=1:size(raw,2)
if isnan(raw{1,i})
raw{1,i} = ' ';
for dyn_i_01=1:var_size_01
iv = strmatch(var_names_01(dyn_i_01,:),raw(1,:),'exact');
dyn_tmp_01 = [raw{2:end,iv}]';
Supports Markdown
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