diff --git a/matlab/@dynSeries/display.m b/matlab/@dynSeries/display.m index 0ed25caaf..66c502beb 100644 --- a/matlab/@dynSeries/display.m +++ b/matlab/@dynSeries/display.m @@ -18,4 +18,22 @@ function display(A) %! @end deftypefn %@eod: -disp(A) \ No newline at end of file +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); \ No newline at end of file