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
Dynare
reporting
Commits
8319399b
Commit
8319399b
authored
May 22, 2014
by
Houtan Bastani
Browse files
reporting: bug fix for when a series doesn’t have a data option passed to it
parent
b3c47556
Changes
2
Hide whitespace changes
Inline
Side-by-side
@report_series/getRange.m
View file @
8319399b
...
...
@@ -18,6 +18,10 @@ function dd = getRange(o)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert
(
~
isempty
(
o
.
data
)
&&
size
(
o
.
data
,
2
)
==
1
);
dd
=
o
.
data
.
dates
;
if
isempty
(
o
.
data
)
dd
=
dates
();
else
assert
(
size
(
o
.
data
,
2
)
==
1
);
dd
=
o
.
data
.
dates
;
end
end
\ No newline at end of file
getMaxRange.m
View file @
8319399b
...
...
@@ -23,12 +23,14 @@ ddmax = dates();
ne
=
length
(
cellser
);
for
i
=
1
:
ne
ddt
=
cellser
{
i
}
.
getRange
();
if
isempty
(
ddmin
)
ddmin
=
ddt
(
1
);
ddmax
=
ddt
(
end
);
else
ddmin
=
min
(
ddt
(
1
),
ddmin
);
ddmax
=
max
(
ddt
(
end
),
ddmax
);
if
~
isempty
(
ddt
)
if
isempty
(
ddmin
)
ddmin
=
ddt
(
1
);
ddmax
=
ddt
(
end
);
else
ddmin
=
min
(
ddt
(
1
),
ddmin
);
ddmax
=
max
(
ddt
(
end
),
ddmax
);
end
end
end
dd
=
ddmin
:
ddmax
;
\ No newline at end of file
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