MATLAB: How to unregister a directory from a source control project in MATLAB

cvsMATLABregistersafevss

When registering a souce control project with MATLAB, I have associated the directory with the wrong project. I want to clear this association so I can associate the directory with the correct project.

Best Answer

The ability to unregister a directory from a source control project is not available in MATLAB.
To work around this issue, modify or delete the mw.scc file in your preferences directory. If you only have one folder registered, you can simply delete the mw.scc file. If you delete this file, all directories will be unregistered. To unregister only one project use the following steps.
1. Change MATLAB's current directory to your preferences directory by executing the following command at the MATLAB command prompt.
cd (prefdir)
2. Open the file mw.scc.
edit mw.scc
3. Remove the two lines which correspond to the directory in question. For example, to unregister a directory called "general_matlab" you would delete the 6th and 8th lines from the example file below.
#Mathworks source code control preferences.
#Thu Mar 23 13:24:50 EST 2006
c./handle_graphics.SccAuxPath=P4SCC\#1666\#\#pjoshi\#\#Pallavi
c./toolboxes.SccProjectName=Perforce Project
c./handle_graphics.SccProjectName=Perforce Project
c./general_matlab.SccProjectName=Perforce Project
c./toolboxes.SccAuxPath=P4SCC\#1666\#\#pjoshi\#\#Toolboxes
c./general_matlab.SccAuxPath=P4SCC\#1666\#\#pjoshi\#\#Pallavi
4. Save the file.