subsref: remove unnecessary feval calls

parent 0b1402e3
Pipeline #731 passed with stage
in 1 minute and 50 seconds
......@@ -187,9 +187,9 @@ switch S(1).type
elseif isscalar(S(1).subs{1}) && isint(S(1).subs{1})
% Input is also interpreted as a backward/forward operator
if S(1).subs{1}>0
r = feval('lead', o, S(1).subs{1});
r = lead(o, S(1).subs{1});
elseif S(1).subs{1}<0
r = feval('lag', o, -S(1).subs{1});
r = lag(o, -S(1).subs{1});
else
% Do nothing.
r = o;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment