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
Sébastien Villemot
dseries
Commits
0b49e51e
Commit
0b49e51e
authored
Feb 15, 2018
by
Stéphane Adjemian
Browse files
Cosmetic change.
parent
dc54c3fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/@dseries/subsref.m
View file @
0b49e51e
...
...
@@ -229,13 +229,9 @@ switch S(1).type
end
%
Extract
a
subsample
using
a
dates
object
[
junk
,
tdx
]
=
intersect
(
A
.
dates
.
time
,
Dates
.
time
,
'
rows
'
);
B
=
dseries
();
B
.
data
=
A
.
data
(
tdx
,
:
);
B
.
name
=
A
.
name
;
B
.
tex
=
A
.
tex
;
B
.
dates
=
A
.
dates
(
tdx
);
B
.
ops
=
A
.
ops
;
B
.
tags
=
A
.
tags
;
B
=
copy
(
A
);
B
.
data
=
B
.
data
(
tdx
,
:
);
B
.
dates
=
B
.
dates
(
tdx
);
elseif
isvector
(
S
(
1
).
subs
{
1
})
&&
all
(
isint
(
S
(
1
).
subs
{
1
}))
error
(
'
dseries
::
subsref
:
It
is
not
possible
to
select
observations
with
a
vector
of
integers
.
You
have
to
index
with
a
dates
object
instead
!
'
);
else
...
...
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