comparison +mpm/subpaths.m @ 6:19c4af287596

Fix default values for relative part
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 10 Sep 2018 16:54:29 +0200
parents a9795512f33a
children f37b4c00a863
comparison
equal deleted inserted replaced
5:6c46515ee860 6:19c4af287596
1 function sp = subpaths(d) 1 function sp = subpaths(d)
2 if ~exist('d', 'var') || isempty(d) 2 if ~exist('d', 'var') || isempty(d)
3 d = pwd; 3 d = '';
4 end 4 end
5 5
6 % TODO: Nice error message if file doesn't exist 6 % TODO: Nice error message if file doesn't exist
7 fstr = fileread('.subpaths'); 7 fstr = fileread(fullfile(d, '.subpaths'));
8 sp = splitlines(strtrim(fstr)); 8 sp = splitlines(strtrim(fstr));
9 end 9 end