Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sébastien Villemot
dseries
Commits
a79d990d
Commit
a79d990d
authored
Aug 31, 2017
by
Stéphane Adjemian
Browse files
Do not display empty dseries objects.
parent
17d010eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/@dseries/disp.m
View file @
a79d990d
...
...
@@ -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
)));
...
...
src/@dseries/display.m
View file @
a79d990d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment