view +mpm/clear.m @ 16:4c5d876068c2

Add stub for MatlabPathManager class
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 17 Sep 2018 14:11:38 +0200
parents ce34182c274e
children 02c290e2018c
line wrap: on
line source

% Remove all loaded subpaths from the matlab path
function clear()
    state = mpm.load_state();

    subpaths = state.added_paths.keys();

    for i = 1:length(subpaths)
        rmpath(subpaths{i});
        state.added_paths.remove(subpaths{i});
    end

    mpm.save_state(state);
end