Preference tools

Programmatically get/set GUI preferences.
Updated 12 May 2010

View License

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.

Cite As

Richie Cotton (2024). Preference tools (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Entering Commands in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes