Added the possibility to get the name of the i-th variable in a dynSeries object.
The following syntax A.name{i} where A is a dynSeries object, returns the name of the i-th variable in A.time-shift
parent
1f48a2bffe
commit
732d321606
|
@ -136,6 +136,11 @@ if (length(S)==2) && isequal(S(1).subs,'set_names') && isequal(S(1).type,'.') &&
|
|||
return
|
||||
end
|
||||
|
||||
if (length(S)==2) && isequal(S(1).subs,'name') && isequal(S(1).type,'.') && isequal(S(2).type,'{}')
|
||||
us = ts.name{S(2).subs{1}};
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
|
||||
%@test:1
|
||||
|
|
Loading…
Reference in New Issue