From fead6b72a8e090f03e885f230d19bb770a20536e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Hermes=29?= <stephane.adjemian@univ-lemans.fr> Date: Wed, 17 Feb 2016 17:23:02 +0100 Subject: [PATCH] Remove double quotes in list of variables. --- src/read/load_csv_file_data.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/read/load_csv_file_data.m b/src/read/load_csv_file_data.m index 94df420..afcf18b 100644 --- a/src/read/load_csv_file_data.m +++ b/src/read/load_csv_file_data.m @@ -121,6 +121,8 @@ if isoctave end varlist = strtrim(varlist); linea = linea+1; + % Remove double quotes if any + varlist = strrep(varlist,'"',''); end % Get following line (number 1 or 2 depending on withnames flag) @@ -192,6 +194,9 @@ end varlist = transpose(varlist); +% Remove double quotes if any +varlist = strrep(varlist,'"',''); + %@test:1 %$ % Download csv file with data. %$ urlwrite('http://www.dynare.org/Datasets/data_ca1_csv.csv','data_ca1_csv.csv'); -- GitLab