Skip to Main Content Skip to Search
Product Documentation

prefdir - Folder containing preferences, history, and layout files

Syntax

prefdir
folder = prefdir
folder = prefdir(1)

Description

prefdir returns the folder that contains

folder = prefdir assigns to folder the name of the folder containing preferences and related files.

folder = prefdir(1) creates a folder for preferences and related files if one does not exist. If the folder does exist, the name is assigned to folder.

Tips

Examples

View the location of the preferences folder:

prefdir
 

Make the preferences folder become the current folder:

cd(prefdir)

% Then, view the files for customizing MathWorks products:
dir
 

On Windows platforms, go directly to the preferences folder in Microsoft Windows Explorer

winopen(prefdir)

See Also

getpref | preferences | setpref

How To

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS