From b73a3471d3e02fb2e401940a41db52772a4f4788 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Sun, 7 Jul 2024 18:03:45 +0200 Subject: [PATCH] fix saveOptions --- src/IO/saveOptions.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/IO/saveOptions.m b/src/IO/saveOptions.m index 3d572361..d2262fef 100644 --- a/src/IO/saveOptions.m +++ b/src/IO/saveOptions.m @@ -19,8 +19,7 @@ function saveOptions(opt) taskString = ''; if isfield(opt, 'taskName') && ... iscellstr(opt.taskName) && ... - length(opt.taskName) > 1 && ... - ~strcmp(opt.taskName{1}, '') + ~all(cellfun(@(x) strcmp(x, ''), opt.taskName)) taskString = ['_task-', strjoin(opt.taskName, '')]; end