Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

How do I regenerate my MATLAB preferences?

Asked by MathWorks Support Team on 15 Dec 2009

I have made changes to my MATLAB preferences which I do not wish to keep, or perhaps my preference files have become corrupt.

0 Comments

MathWorks Support Team

Products

1 Answer

Answer by MathWorks Support Team on 18 Oct 2013
Accepted answer

To regenerate your MATLAB preferences, do the following:

1. Locate the MATLAB preferences directory for your user account.

In MATLAB 8.3 (R2014a), the default location of the preferences directory is at the following location:

    C:\Users\{username}\AppData\Roaming\MathWorks\MATLAB\R2014a (on Windows)

    /home/{username}/.matlab/R2014a (on Linux/UNIX)

    /Users/{username}/.matlab/R2014a (on Mac)

You can also run the following command in the MATLAB command prompt in order to locate your preferences directory:

>>prefdir
This is where your "matlab.prf" file is located. Your path may be different depending on how your system is setup. The preference directory may be hidden in some operating systems.

2. Make sure that MATLAB is closed and rename the preferences directory of your current MATLAB version and all older versions of MATLAB to something else. For example, in MATLAB 8.2 (R2013b) rename the directory R2013b to R2013b_old. If you also have MATLAB 8.1 (R2013a) installed on your computer, rename the R2013a directory to R2013a_old.

3. Restart MATLAB. A new preferences directory will be created for the MATLAB version that is launched.

If this does not address the issue that you hoped it would, it is possible to restore your preferences by deleting the newly created directories (R2013b and/or R2013a) and renaming the R2013b_old and/or R2013a_old directories to their original names (R2013b and R2013a respectively).

0 Comments

MathWorks Support Team

Contact us