Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dynare
dseries
Commits
ef98374e
Commit
ef98374e
authored
Oct 17, 2016
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove further instances of inputname in subsref
(cherry picked from commit
5da2d18e
)
parent
3684cf8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/@dseries/subsref.m
src/@dseries/subsref.m
+3
-3
No files found.
src/@dseries/subsref.m
View file @
ef98374e
...
...
@@ -137,10 +137,10 @@ switch S(1).type
if
isequal
(
length
(
S
),
2
)
if
strcmp
(
S
(
2
).
type
,
'
()
'
)
if
isempty
(
S
(
2
).
subs
)
save
(
A
,
inputname
(
1
)
);
save
(
A
);
else
if
isempty
(
S
(
2
).
subs
{
1
}
)
save
(
A
,
inputname
(
1
)
,
S
(
2
).
subs
{
2
}
);
save
(
A
,
''
,
S
(
2
).
subs
{
2
}
);
else
save
(
A
,
S
(
2
).
subs
{
:
}
);
end
...
...
@@ -193,7 +193,7 @@ switch S(1).type
if
isempty
(
A
)
B
=
dseries
(
S
(
1
).
subs
{
1
}
);
else
error
(
[
'
dseries
:
:
subsref
:
dseries
object
'''
inputname
(
1
)
'''
is
not
empty
!
'
]
)
error
(
'
dseries
::
subsref
:
dseries
object
is
not
empty
!
'
)
end
elseif
isa
(
S
(
1
).
subs
{
1
},
'
dynTimeIndex
'
)
%
shift
backward
/
forward
(
lag
/
lead
)
dseries
object
...
...
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