Skip to content

Commit

Permalink
[feat] support keyword=value input for matlab R2021 or newer
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Dec 24, 2024
1 parent d7cdefb commit 6462e20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/PoissonRecon
Submodule PoissonRecon updated 244 files
2 changes: 1 addition & 1 deletion varargin2struct.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
while (i <= len)
if (isstruct(varargin{i}))
opt = mergestruct(opt, varargin{i});
elseif (ischar(varargin{i}) && i < len)
elseif ((ischar(varargin{i}) || isa(varargin{i}, 'string')) && i < len)
opt.(lower(varargin{i})) = varargin{i + 1};
i = i + 1;
else
Expand Down

0 comments on commit 6462e20

Please sign in to comment.