Removed the loop for building the recursive expression to be evaluated.

time-shift
Stéphane Adjemian (Scylla) 2014-05-02 13:19:40 +02:00 committed by Stéphane Adjemian (Charybdis)
parent 4da4623c94
commit e16e05a50d
1 changed files with 1 additions and 4 deletions

View File

@ -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');