Mercurial > repos > public > matlab_path_manager
view +mpm/clear.m @ 9:57304525dffe
Add license file
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 10 Sep 2018 17:30:00 +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