I have been looking for a simple way to remove a bunch of paths from matlab. I am working with a fairly large program and it includes many paths in its directory. I also work with svn version handling and I use many branches, which in general contains some functions that are the same, some that are modified and some that only exists on one branch.
The problem is that when I set the path for one branch (using custom function) and then want to change directory to another path, the first part is annoying to remove. I have used
rmpath(path1,path2,...);
However, this requires typing each path by hand. Since all paths have a common base directory I wonder, are there anyway to use wild cards to remove the complete directory from the path? I use a windows machine.