Skip to content
Snippets Groups Projects
Commit 41e6ecaa authored by Houtan Bastani's avatar Houtan Bastani
Browse files

bug: nopathchange was always being set, regardless of whether or not the flag was passed

parent d730353f
Branches
Tags
No related merge requests found
...@@ -51,9 +51,9 @@ change_path_flag = true; ...@@ -51,9 +51,9 @@ change_path_flag = true;
% Filter out some options. % Filter out some options.
if nargin>1 if nargin>1
id = strfind(varargin,'nopathchange'); id = strfind(varargin,'nopathchange');
if ~isempty(id) if ~all(cellfun(@isempty, id))
change_path_flag = false; change_path_flag = false;
varargin(id{1}) = []; varargin(cellfun(@isempty, id) == 0) = [];
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment