Commit ef98374e authored by Houtan Bastani's avatar Houtan Bastani

remove further instances of inputname in subsref

(cherry picked from commit 5da2d18e)
parent 3684cf8e
......@@ -137,10 +137,10 @@ switch S(1).type
if isequal(length(S),2)
if strcmp(S(2).type,'()')
if isempty(S(2).subs)
save(A,inputname(1));
save(A);
else
if isempty(S(2).subs{1})
save(A,inputname(1),S(2).subs{2});
save(A,'',S(2).subs{2});
else
save(A,S(2).subs{:});
end
......@@ -193,7 +193,7 @@ switch S(1).type
if isempty(A)
B = dseries(S(1).subs{1});
else
error(['dseries::subsref: dseries object ''' inputname(1) ''' is not empty!'])
error('dseries::subsref: dseries object is not empty!')
end
elseif isa(S(1).subs{1},'dynTimeIndex')
% shift backward/forward (lag/lead) dseries object
......
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