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
90d8efd1
Commit
90d8efd1
authored
Oct 08, 2013
by
Stéphane Adjemian
Browse files
Added unitary test.
parent
2967328b
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynSeries/subsref.m
View file @
90d8efd1
...
...
@@ -600,4 +600,25 @@ end
%
$
end
%
$
%
$
T
=
all
(
t
);
%
@eof
:
13
\ No newline at end of file
%
@eof
:
13
%
@test
:
14
%
$
try
%
$
data
=
transpose
(
0
:
1
:
50
);
%
$
ts
=
dynSeries
(
data
,
'
1950
Q1
'
);
%
$
a
=
ts
.
lag
;
%
$
b
=
ts
.
lead
;
%
$
c
=
ts
(
-
1
);
%
$
d
=
ts
(
1
);
%
$
t
(
1
)
=
1
;
%
$
catch
%
$
t
(
1
)
=
0
;
%
$
end
%
$
%
$
if
t
(
1
)
>
1
%
$
t
(
2
)
=
(
a
==
c
);
%
$
t
(
3
)
=
(
b
==
d
);
%
$
end
%
$
%
$
T
=
all
(
t
);
%
@eof
:
14
\ No newline at end of file
Write
Preview
Markdown
is supported
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