GetPreference and SetPreference provide a programmatic alternative to the Preferences dialog (File -> Preferences).
Use these to automatically configure your version of MATLAB to how you like it. (Save on setup time with each new release!)
Note that these function rely on undocumented features that may change in future releases. All functions work in R2010a and R2009b, but GetPreference does not work in previous versions.
Richie Cotton (2023). Preference tools (https://www.mathworks.com/matlabcentral/fileexchange/27588-preference-tools), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!