comparison +mpm/clear.m @ 21:02c290e2018c

Refactor ui functions to use the MPM class. Not tested
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 17 Sep 2018 15:49:39 +0200
parents ce34182c274e
children
comparison
equal deleted inserted replaced
20:ddf75f18509f 21:02c290e2018c
1 % Remove all loaded subpaths from the matlab path 1 % Remove all loaded subpaths from the matlab path
2 function clear() 2 function clear()
3 state = mpm.load_state(); 3 m = mpm.MatlabPathManager();
4 4 m.clear();
5 subpaths = state.added_paths.keys();
6
7 for i = 1:length(subpaths)
8 rmpath(subpaths{i});
9 state.added_paths.remove(subpaths{i});
10 end
11
12 mpm.save_state(state);
13 end 5 end