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
Dóra Kocsis
dynare
Commits
bcb6b529
Commit
bcb6b529
authored
Nov 08, 2013
by
Stéphane Adjemian
Browse files
Fixed error messages in @dseries/align.
parent
69525be7
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dseries/align.m
View file @
bcb6b529
...
...
@@ -45,7 +45,7 @@ function [a,b] = align(a, b) % --*-- Unitary tests --*--
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
if
~
isequal
(
a
.
freq
,
b
.
freq
)
error
([
'
dseries
:
:
merge_dates
:
'''
inputname
(
1
)
'''
and
'''
inputname
(
2
)
'''
dseries
objects
must
have
common
frequencies
!
'
])
error
([
'
dseries
:
:
align
:
'''
inputname
(
1
)
'''
and
'''
inputname
(
2
)
'''
dseries
objects
must
have
common
frequencies
!
'
])
end
init
=
min
(
a
.
init
,
b
.
init
);
...
...
@@ -59,7 +59,7 @@ last_b = time_range_of_b(b.nobs);
common_time_range
=
intersect
(
time_range_of_a
,
time_range_of_b
);
if
isempty
(
common_time_range
)
error
([
'
dseries
:
:
merge_dates
:
'''
inputname
(
1
)
'''
and
'''
inputname
(
2
)
'''
dseries
object
must
have
at
least
one
common
date
!
'
])
error
([
'
dseries
:
:
align
:
'''
inputname
(
1
)
'''
and
'''
inputname
(
2
)
'''
dseries
object
must
have
at
least
one
common
date
!
'
])
end
if
a
.
init
<
b
.
init
...
...
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