From 17542c540c2e2c59a5a860b7d0dc8272a78e3fe8 Mon Sep 17 00:00:00 2001 From: Olivier Sauter <Olivier.Sauter@epfl.ch> Date: Thu, 30 Jan 2020 11:46:16 +0100 Subject: [PATCH] add gdatpaths full call in gdat if missing subpaths --- matlab/gdat.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matlab/gdat.m b/matlab/gdat.m index 21e732d9..3d462622 100644 --- a/matlab/gdat.m +++ b/matlab/gdat.m @@ -139,8 +139,7 @@ end % are many folders in the path subfunction = sprintf('gdat_%s',deblank(lower(machine_eff))); if isempty(which(subfunction)), - gdat_path = fileparts(mfilename('fullpath')); - addpath(fullfile(gdat_path,upper(machine_eff))); + gdatpaths; % to make create all subpaths end % NOTE: we could also check if it matches the path to the main function. -- GitLab