Modified behaviour of disp overload method in @dynDate and @dynDates classes.
parent
f042fcdd7b
commit
53ce4205e2
|
@ -18,7 +18,7 @@ function disp(d)
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if isempty(d)
|
if isempty(d)
|
||||||
fprintf('%s is an empty dynDate object.\n', inputname(1));
|
fprintf('Empty dynDate object.\n');
|
||||||
else
|
else
|
||||||
fprintf('%s = <dynDate: %s>\n', inputname(1), format(d));
|
fprintf('<dynDate: %s>\n', format(d));
|
||||||
end
|
end
|
|
@ -18,14 +18,14 @@ function disp(dd)
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if isempty(dd)
|
if isempty(dd)
|
||||||
fprintf('%s is an empty dynDates object.\n', inputname(1));
|
fprintf('Empty dynDates object.\n');
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
max_displayed = 5;
|
max_displayed = 5;
|
||||||
first_displayed = 2;
|
first_displayed = 2;
|
||||||
|
|
||||||
fprintf('%s = <dynDates: ', inputname(1));
|
fprintf('<dynDates: ');
|
||||||
|
|
||||||
if dd.ndat<=max_displayed
|
if dd.ndat<=max_displayed
|
||||||
for i=1:dd.ndat
|
for i=1:dd.ndat
|
||||||
|
|
Loading…
Reference in New Issue