From 9f793d10696e6bc4604e04f8532344c08624e3b4 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx,de> Date: Fri, 4 Jul 2014 13:43:33 +0200 Subject: [PATCH] Account for loading of only one variable when loading Excel-file Closes #654 --- matlab/load_xls_file_data.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/matlab/load_xls_file_data.m b/matlab/load_xls_file_data.m index 0dd11000f..58bfb5fac 100644 --- a/matlab/load_xls_file_data.m +++ b/matlab/load_xls_file_data.m @@ -76,10 +76,14 @@ if isequal(t1,0) && isequal(t2,0) % The file contains no informations about the variables and dates. notime = 1; noname = 1; -elseif isequal(t2,1) && t1>=t2 - % The file contains no informations about the variables. +elseif isequal(t2,1) && t1>=t2 && n2~=t2 %only one column present, but no var name in header text + % The file contains no informations about the dates. notime = 0; noname = 1; +elseif isequal(t2,1) && t1>=t2 && n2==t2 %only one column present with var name in header text + % The file contains no informations about the variables. + notime = 1; + noname = 0; elseif isequal(t1,1) && t2>=t1 % The file contains no informations about the dates. notime = 1; -- GitLab