Commit a79d990d authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Do not display empty dseries objects.

parent 17d010eb
......@@ -25,8 +25,15 @@ function disp(o)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
separator = repmat(' | ', nobs(o)+1,1);
vspace = ' ';
if ~vobs(o)
disp(vspace)
disp([inputname(1) ' is an empty dseries object.'])
return
end
separator = repmat(' | ', nobs(o)+1,1);
TABLE = ' ';
for t=1:nobs(o)
TABLE = char(TABLE, date2string(o.dates(t)));
......
......@@ -30,6 +30,13 @@ function display(o)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
vspace = ' ';
if ~vobs(o)
disp(vspace)
disp([inputname(1) ' is an empty dseries object.'])
return
end
TABLE = ' ';
if vobs(o)<=10
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment