Skip to content
Snippets Groups Projects
Commit a1e42ee9 authored by Qianqian Fang's avatar Qianqian Fang
Browse files

remove the last setfield call

parent 9434103a
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ while(i<=len)
if(isstruct(varargin{i}))
opt=mergestruct(opt,varargin{i});
elseif(ischar(varargin{i}) && i<len)
opt=setfield(opt,lower(varargin{i}),varargin{i+1});
opt.(lower(varargin{i}))=varargin{i+1};
i=i+1;
else
error('input must be in the form of ...,''name'',value,... pairs or structs');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment