Duplicated @dynSeries/disp code in @dynSeries/display (so that the name of the dynSeries objected is correctly printed in the command window).
parent
2e4a52d69f
commit
0e5819ee38
|
@ -18,4 +18,22 @@ function display(A)
|
||||||
%! @end deftypefn
|
%! @end deftypefn
|
||||||
%@eod:
|
%@eod:
|
||||||
|
|
||||||
disp(A)
|
separator = repmat(' | ',A.nobs+1,1);
|
||||||
|
vspace = ' ';
|
||||||
|
TABLE = ' ';
|
||||||
|
for t=1:A.nobs
|
||||||
|
TABLE = char(TABLE, format(A.time(t)));
|
||||||
|
end
|
||||||
|
for i = 1:A.vobs
|
||||||
|
TABLE = horzcat(TABLE,separator);
|
||||||
|
tmp = A.name{i};
|
||||||
|
for t=1:A.nobs
|
||||||
|
tmp = char(tmp,num2str(A.data(t,i)));
|
||||||
|
end
|
||||||
|
TABLE = horzcat(TABLE, tmp);
|
||||||
|
end
|
||||||
|
disp(vspace)
|
||||||
|
disp([inputname(1) ' is a dynSeries object:'])
|
||||||
|
disp(vspace);
|
||||||
|
disp(TABLE);
|
||||||
|
disp(vspace);
|
Loading…
Reference in New Issue