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
Stéphane Adjemian (Charybdis) 2012-12-12 15:51:59 +01:00
parent 1f48a2bffe
commit 732d321606
1 changed files with 5 additions and 0 deletions

View File

@ -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