Mercurial > repos > public > matlab_path_manager
view +mpm/clear.m @ 15:8bce3cf7d6c6
Update todo.txt
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 17 Sep 2018 14:05:26 +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