
483The MATLAB
®
Desktop
Each preference appears to be on a separate line in the following format: <pref-name>=<pref-
type><pref-value> where <pref-type> appears to be one of these:
B => boolean/logical ag
◾
C => color (RGB numeric value) ◾
F => font (type,size,name) ◾
I => int16 ◾
J => int64 ◾
R => rectangular area (x,y,h,w) ◾
S => string/char ◾
Some examples:
EditorShowLineNumbers = Btrue
EditorMaxCommentWidth = I120
We can read the preference names from this MATLAB.prf le and then use the following
(you-guessed-it) Java calls to get/set the values:
26
com.mathworks.services.Prefs.get<type>Pref(<pref-name>)
com.mathworks.services.Prefs.set<type>Pref(<pref-name> ...