Verified Commit 2f41193f authored by Houtan Bastani's avatar Houtan Bastani
Browse files

subsref: remove unnecessary feval calls

parent 0b1402e3
......@@ -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});
% 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