From 6462e20568b21a8de1918e9a09fd2ce2ed0e8986 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Tue, 24 Dec 2024 13:32:33 -0500 Subject: [PATCH] [feat] support keyword=value input for matlab R2021 or newer --- tools/PoissonRecon | 2 +- varargin2struct.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/PoissonRecon b/tools/PoissonRecon index 7f64494..387fa8a 160000 --- a/tools/PoissonRecon +++ b/tools/PoissonRecon @@ -1 +1 @@ -Subproject commit 7f64494155b2fc8f4d70ba1f69496e9f39da2bd4 +Subproject commit 387fa8acc7871133efbe1fe20083bd57899ef018 diff --git a/varargin2struct.m b/varargin2struct.m index 52340ba..d19f0a9 100644 --- a/varargin2struct.m +++ b/varargin2struct.m @@ -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