From 255e42eaf881ccdb6424a0b6651088e918afad43 Mon Sep 17 00:00:00 2001 From: Apoorva Srivastava Date: Sun, 7 Jul 2019 09:27:18 -0400 Subject: [PATCH] Allow rootPath to be a (double quoted) string as well --- dirPlus.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dirPlus.m b/dirPlus.m index 243f490..acdc86c 100644 --- a/dirPlus.m +++ b/dirPlus.m @@ -137,7 +137,7 @@ % Add general parameters: addRequired(parser, 'rootPath', ... - @(s) validateattributes(s, {'char'}, {'nonempty'})); + @(s) validateattributes(s, {'char', 'string'}, {'nonempty'})); addPVPair(parser, 'Struct', false, ... @(b) validateattributes(b, {'logical'}, {'scalar'})); addPVPair(parser, 'Depth', recursionLimit, ... @@ -331,4 +331,4 @@ end -%~~~End local functions~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \ No newline at end of file +%~~~End local functions~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~