diff --git a/matlab/reports/@graph/graph.m b/matlab/reports/@graph/graph.m index c1bb5c951eadcbeda0c94eedcb935bb37fa39bf5..452281de3299cb499779041603c91796a88ef024 100644 --- a/matlab/reports/@graph/graph.m +++ b/matlab/reports/@graph/graph.m @@ -77,13 +77,12 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - field = lower(pair{1}); - ind = strmatch(field, lower(optNames), 'exact'); + ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; else - error('@graph.graph: %s is not a recognized option.', field); + error('@graph.graph: %s is not a recognized option.', pair{1}); end end end diff --git a/matlab/reports/@page/page.m b/matlab/reports/@page/page.m index 8e2b305267fb612781f2ca43a6ad1cc9d2bccc90..b36adb1c5f5a128c27e693bbddc62cf77615c181 100644 --- a/matlab/reports/@page/page.m +++ b/matlab/reports/@page/page.m @@ -52,13 +52,12 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - field = lower(pair{1}); - ind = strmatch(field, lower(optNames), 'exact'); + ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; else - error('@page.page: %s is not a recognized option.', field); + error('@page.page: %s is not a recognized option.', pair{1}); end end end diff --git a/matlab/reports/@report/report.m b/matlab/reports/@report/report.m index 5e306c67532c3b998a7ef722e947acd7b03075ac..58c1634ed75772b211556fb950a01dc54bd46f84 100644 --- a/matlab/reports/@report/report.m +++ b/matlab/reports/@report/report.m @@ -58,14 +58,12 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - field = lower(pair{1}); - ind = strmatch(field, lower(optNames), 'exact'); + ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; else - error('@report.report: %s is not a recognized option.', ... - field); + error('@report.report: %s is not a recognized option.', pair{1}); end end end diff --git a/matlab/reports/@section/section.m b/matlab/reports/@section/section.m index aca48b8c189db1f79ddaa065a14eb65bad8b00ba..7e6bb08249e831ae4c8273a619c2cd1c12287d6e 100644 --- a/matlab/reports/@section/section.m +++ b/matlab/reports/@section/section.m @@ -40,14 +40,12 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - field = lower(pair{1}); - ind = strmatch(field, lower(optNames), 'exact'); + ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; else - error('@section.section: %s is not a recognized option.', ... - field); + error('@section.section: %s is not a recognized option.', pair{1}); end end end diff --git a/matlab/reports/@series/series.m b/matlab/reports/@series/series.m index 1ef0d424efc283e24cfc93c3ae8d450fe6b442a5..39b104d97040dc446b8e45688c09cabbc62c86ce 100644 --- a/matlab/reports/@series/series.m +++ b/matlab/reports/@series/series.m @@ -65,13 +65,12 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - field = lower(pair{1}); - ind = strmatch(field, lower(optNames), 'exact'); + ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; else - error('@series.series: %s is not a recognized option.', field); + error('@series.series: %s is not a recognized option.', pair{1}); end end end diff --git a/matlab/reports/@table/table.m b/matlab/reports/@table/table.m index f24a75c8883e19e9a3a8516955de0d793060f7e6..e7247a61be4751a27ea3f5e4411b7bf062dfb084 100644 --- a/matlab/reports/@table/table.m +++ b/matlab/reports/@table/table.m @@ -62,14 +62,12 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - field = lower(pair{1}); - ind = strmatch(field, lower(optNames), 'exact'); + ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; else - error('%s is not a recognized option to the Table constructor.', ... - field); + error('%s is not a recognized option to the Table constructor.', pair{1}); end end end diff --git a/matlab/reports/@vspace/vspace.m b/matlab/reports/@vspace/vspace.m index 0af84127e1a3ed6adcdbb1edbd129a0d67c248c0..e61ca8149b597d240ac64bdc4b7d759d5256673b 100644 --- a/matlab/reports/@vspace/vspace.m +++ b/matlab/reports/@vspace/vspace.m @@ -48,13 +48,12 @@ elseif nargin > 1 % overwrite default values for pair = reshape(varargin, 2, []) - field = lower(pair{1}); - ind = strmatch(field, lower(optNames), 'exact'); + ind = strmatch(lower(pair{1}), lower(optNames), 'exact'); assert(isempty(ind) || length(ind) == 1); if ~isempty(ind) o.(optNames{ind}) = pair{2}; else - error('@vspace.vspace: %s is not a recognized option.', field); + error('@vspace.vspace: %s is not a recognized option.', pair{1}); end end end