% Set project to current folder
function set(d)
    if ~exist('d', 'var') || isempty(d)
        d = pwd;
    end

    sp = mpm.subpaths(d);
    for i = 1:length(sp)
        addpath(fullfile(pwd, sp{i}));
    end
end
