prefdir - Folder containing settings and layout files - MATLAB (original) (raw)
Main Content
Folder containing settings and layout files
Syntax
Description
folder = prefdir
returns the name of the settings folder. The settings folder contains settings for MATLABĀ® and related products, MATLAB favorites files, and MATLAB desktop layout files.
folder = prefdir(1)
creates a folder for settings and related files if one does not exist. If the folder does exist, the name is assigned tofolder
.
Examples
ans = 'C:\Users_username_\AppData\Roaming\MathWorks\MATLAB\R2025a'
Set the current folder to the settings folder and then view the contents of the folder.
Extended Capabilities
Version History
Introduced before R2006a
The Preferences window has been renamed to the Settings window and preferences are now referred to as settings.