From 4fd44360130048dce2c1126dc4293b458f696d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= Date: Fri, 2 May 2014 12:53:28 +0200 Subject: [PATCH] Fixed case sensitivity issue with respect to TO and DO keywords. --- matlab/utilities/dseries/from.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/matlab/utilities/dseries/from.m b/matlab/utilities/dseries/from.m index 75675dc6b..b666726f0 100644 --- a/matlab/utilities/dseries/from.m +++ b/matlab/utilities/dseries/from.m @@ -17,12 +17,14 @@ function from(varargin) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . -if ~(ismember('to',varargin) && ismember('do',varargin)) +lvarargin = lower(varargin); + +if ~(ismember('to',lvarargin) && ismember('do',lvarargin)) error('This command must be followed by TO and DO keywords (in that order).') end -to_id = strmatch('to',varargin); -do_id = strmatch('do',varargin); +to_id = strmatch('to',lvarargin); +do_id = strmatch('do',lvarargin); if do_id