diff --git a/matlab/reports/@graph/graph.m b/matlab/reports/@graph/graph.m index 5852884bee7341f5d1c7422d5d573641afa145f8..d2f1da55d8a74166781dbce1e95be786e812a1e4 100644 --- a/matlab/reports/@graph/graph.m +++ b/matlab/reports/@graph/graph.m @@ -90,7 +90,7 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); + ind = find(strcmpi(optNames, pair{1})); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; diff --git a/matlab/reports/@page/page.m b/matlab/reports/@page/page.m index 7bcc26c5d748f75c7c28ef732676394d97088d30..99442c777a05f1c7b2309794ba48a673cbf8ac72 100644 --- a/matlab/reports/@page/page.m +++ b/matlab/reports/@page/page.m @@ -53,7 +53,7 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); + ind = find(strcmpi(optNames, pair{1})); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; diff --git a/matlab/reports/@report/report.m b/matlab/reports/@report/report.m index 4aabeb5a8b322de798ab967687332605bde2e2d7..07340f9c493a7c276e1c2d7e1c2c86461d8fcbca 100644 --- a/matlab/reports/@report/report.m +++ b/matlab/reports/@report/report.m @@ -57,7 +57,7 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); + ind = find(strcmpi(optNames, pair{1})); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; diff --git a/matlab/reports/@report_series/report_series.m b/matlab/reports/@report_series/report_series.m index 4d3e6287ac64dbd517d6597a31b68b85375924e4..611277686e8579fe62a1454b5ea14a2c0b371cc5 100644 --- a/matlab/reports/@report_series/report_series.m +++ b/matlab/reports/@report_series/report_series.m @@ -78,7 +78,7 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); + ind = find(strcmpi(optNames, pair{1})); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; diff --git a/matlab/reports/@report_table/report_table.m b/matlab/reports/@report_table/report_table.m index c49ca5fb6678c43fb92130e89e50ddfd26a78a41..8f922f1eb67be5f2e31cc5662ac9fb9c13034021 100644 --- a/matlab/reports/@report_table/report_table.m +++ b/matlab/reports/@report_table/report_table.m @@ -65,7 +65,7 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); + ind = find(strcmpi(optNames, pair{1})); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; diff --git a/matlab/reports/@section/section.m b/matlab/reports/@section/section.m index 4b756de7f36f86b4ac657d46347786074b155cad..5042d94d06c30f0f735b40a20cb834ffcdabc93b 100644 --- a/matlab/reports/@section/section.m +++ b/matlab/reports/@section/section.m @@ -40,7 +40,7 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); + ind = find(strcmpi(optNames, pair{1})); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; diff --git a/matlab/reports/@vspace/vspace.m b/matlab/reports/@vspace/vspace.m index e61ca8149b597d240ac64bdc4b7d759d5256673b..a3aa809daf2a70444023773a022ae303f0f9791b 100644 --- a/matlab/reports/@vspace/vspace.m +++ b/matlab/reports/@vspace/vspace.m @@ -12,7 +12,7 @@ function o = vspace(varargin) % SPECIAL REQUIREMENTS % none -% Copyright (C) 2013 Dynare Team +% Copyright (C) 2013-2014 Dynare Team % % This file is part of Dynare. % @@ -48,7 +48,7 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); + ind = find(strcmpi(optNames, pair{1})); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2};