Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
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
dynare
Commits
16a73af0
Commit
16a73af0
authored
11 years ago
by
Ferhat Mihoubi
Browse files
Options
Downloads
Patches
Plain Diff
Allows to compute the difference between two dynSeries with different starting dates
parent
b5a167ca
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!425
dynSeries fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/@dynSeries/minus.m
+2
-2
2 additions, 2 deletions
matlab/@dynSeries/minus.m
with
2 additions
and
2 deletions
matlab/@dynSeries/minus.m
+
2
−
2
View file @
16a73af0
...
...
@@ -38,9 +38,9 @@ function A = minus(B,C)
%
%
You
should
have
received
a
copy
of
the
GNU
General
Public
License
%
along
with
Dynare
.
If
not
,
see
<
http
:
//www.gnu.org/licenses/>.
[
B
,
C
]
=
align
(
B
,
C
);
if
~
isequal
(
B
.
vobs
,
C
.
vobs
)
&&
~
(
isequal
(
B
.
vobs
,
1
)
||
isequal
(
C
.
vobs
,
1
))
error
([
'
dynSeries
:
:
pl
us
:
Cannot
substract
'
inputname
(
1
)
'
and
'
inputname
(
2
)
'
(
wrong
number
of
variables
)
!
'
])
error
([
'
dynSeries
:
:
min
us
:
Cannot
substract
'
inputname
(
1
)
'
and
'
inputname
(
2
)
'
(
wrong
number
of
variables
)
!
'
])
else
if
B
.
vobs
>
C
.
vobs
idB
=
1
:
B
.
vobs
;
...
...
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