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
Johannes Pfeifer
dynare
Commits
12fc7a42
Commit
12fc7a42
authored
Sep 05, 2013
by
Stéphane Adjemian
Browse files
Cosmetic changes. Removed useless curly braces and deleted trailing white spaces.
parent
02eb19fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynSeries/subsref.m
View file @
12fc7a42
...
...
@@ -75,7 +75,7 @@ switch S(1).type
if
length
(
S
)
>
1
&&
isequal
(
S
(
2
).
type
,
'
()
'
)
&&
isempty
(
S
(
2
).
subs
)
S
=
shiftS
(
S
);
end
case
{
'
lag
'
}
case
'
lag
'
if
length
(
S
)
>
1
&&
isequal
(
S
(
2
).
type
,
'
()
'
)
if
isempty
(
S
(
2
).
subs
)
B
=
feval
(
S
(
1
).
subs
,
A
);
...
...
@@ -90,7 +90,7 @@ switch S(1).type
else
B
=
feval
(
S
(
1
).
subs
,
A
);
end
case
{
'
save
'
}
%
Save
dynSeries
object
on
disk
(
default
is
a
csv
file
).
case
'
save
'
%
Save
dynSeries
object
on
disk
(
default
is
a
csv
file
).
B
=
NaN
;
if
isequal
(
length
(
S
),
2
)
if
strcmp
(
S
(
2
).
type
,
'
()
'
)
...
...
@@ -108,7 +108,7 @@ switch S(1).type
else
error
(
'
dynSeries
::
subsref
:
Call
to
save
method
must
come
in
last
position
!
'
)
end
case
{
'
size
'
}
case
'
size
'
if
isequal
(
length
(
S
),
2
)
&&
strcmp
(
S
(
2
).
type
,
'
()
'
)
if
isempty
(
S
(
2
).
subs
)
[
x
,
y
]
=
size
(
A
);
...
...
@@ -142,7 +142,7 @@ switch S(1).type
else
error
(
'
dynSeries
::
subsref
:
Unknown
public
method
,
public
member
or
variable
!
'
)
end
end
end
case
'
()
'
if
ischar
(
S
(
1
).
subs
{
1
}
)
%
If
ts
is
an
empty
dynSeries
object
,
populate
this
object
by
reading
data
in
a
file
.
...
...
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