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
Dóra Kocsis
dynare
Commits
feb0eb8a
Commit
feb0eb8a
authored
Mar 25, 2013
by
Sébastien Villemot
Browse files
Adapt for change of ismember in MATLAB R2013a
parent
e16e9c94
Changes
1
Show whitespace changes
Inline
Side-by-side
matlab/varlist_indices.m
View file @
feb0eb8a
...
...
@@ -13,7 +13,7 @@ function [i_var,nvar] = varlist_indices(sublist,list)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2010-201
1
Dynare Team
% Copyright (C) 2010-201
3
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -32,7 +32,12 @@ function [i_var,nvar] = varlist_indices(sublist,list)
% In Octave, ismember() doesn't operate on character arrays
if
~
exist
(
'OCTAVE_VERSION'
)
if
isempty
(
sublist
)
check
=
[];
i_var
=
[];
else
[
check
,
i_var
]
=
ismember
(
sublist
,
list
,
'rows'
);
end
else
check
=
[];
i_var
=
[];
...
...
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