Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dseries
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dseries
Commits
c25319ef
Commit
c25319ef
authored
7 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into ecb-master
parents
40b2ff86
8051f8ff
No related branches found
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/@dseries/vertcat.m
+22
-3
22 additions, 3 deletions
src/@dseries/vertcat.m
with
22 additions
and
3 deletions
src/@dseries/vertcat.m
+
22
−
3
View file @
c25319ef
...
...
@@ -37,9 +37,9 @@ function o = vertcat(varargin) % --*-- Unitary tests --*--
if
nargin
==
0
o
=
dseries
();
elseif
nargin
==
1
o
=
varargin
{
1
};
o
=
copy
(
varargin
{
1
}
)
;
elseif
nargin
>
1
o
=
varargin
{
1
};
o
=
copy
(
varargin
{
1
}
)
;
for
i
=
2
:
nargin
o
=
vertcat_
(
o
,
varargin
{
i
});
end
...
...
@@ -108,7 +108,6 @@ d.dates = [b.dates; c.dates];
%$ T = all(t);
%@eof:1
%@test:2
%$ % Define a data set.
%$ A = [transpose(1:10),2*transpose(1:10)];
...
...
@@ -168,3 +167,23 @@ d.dates = [b.dates; c.dates];
%$ end
%$ T = all(t);
%@eof:3
%@test:4
%$ A = dseries(ones(3, 1), '1990Q1');
%$ B = dseries(2*ones(3, 1), '1990Q4Q3');
%$
%$ try
%$ C = [A; B];
%$ t(1) = true;
%$ catch
%$ t(1) = false;
%$ end
%$
%$ % Check the results.
%$ if t(1)
%$ t(2) = dassert(C.data, [ones(3,1); 2*ones(3,1)]);
%$ t(3) = dassert(A.data, ones(3,1));
%$ t(4) = dassert(B.data, 2*ones(3,1));
%$ end
%$ T = all(t);
%@eof:4
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment