Modified behaviour of disp overload method in @dynDate and @dynDates classes.

time-shift
Stéphane Adjemian (Charybdis) 2013-07-01 18:21:21 +02:00
parent f042fcdd7b
commit 53ce4205e2
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ function disp(d)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if isempty(d)
fprintf('%s is an empty dynDate object.\n', inputname(1));
fprintf('Empty dynDate object.\n');
else
fprintf('%s = <dynDate: %s>\n', inputname(1), format(d));
fprintf('<dynDate: %s>\n', format(d));
end

View File

@ -18,14 +18,14 @@ function disp(dd)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if isempty(dd)
fprintf('%s is an empty dynDates object.\n', inputname(1));
fprintf('Empty dynDates object.\n');
return
end
max_displayed = 5;
first_displayed = 2;
fprintf('%s = <dynDates: ', inputname(1));
fprintf('<dynDates: ');
if dd.ndat<=max_displayed
for i=1:dd.ndat