From e16e05a50de79359088c45309f6eff51453e0845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= Date: Fri, 2 May 2014 13:19:40 +0200 Subject: [PATCH] Removed the loop for building the recursive expression to be evaluated. --- matlab/utilities/dseries/from.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/matlab/utilities/dseries/from.m b/matlab/utilities/dseries/from.m index 9441dca0f..2f302068d 100644 --- a/matlab/utilities/dseries/from.m +++ b/matlab/utilities/dseries/from.m @@ -59,10 +59,7 @@ if ~isequal(do_id,4) end % Build the recursive expression. -EXPRESSION = []; -for i=5:nargin - EXPRESSION = [EXPRESSION, varargin{i}]; -end +EXPRESSION = char([varargin{5:end}]); % Get all the variables involved in the recursive expression. variables = regexpi(EXPRESSION, '\w*\(t\)|\w*\(t\-\d\)|\w*\(t\+\d\)','match');