Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Changing preferences from command line
Date: Thu, 19 Nov 2009 14:03:19 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 21
Message-ID: <he3j77$3j1$1@fred.mathworks.com>
References: <f9vhri$orl$1@fred.mathworks.com> <fa415r$kk8$1@fred.mathworks.com> <fa48lm$834$1@fred.mathworks.com> <he2cfb$42d$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1258639399 3681 172.30.248.37 (19 Nov 2009 14:03:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 19 Nov 2009 14:03:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:586405


"Diederick " <dcniehorsterDEL@hkuDEL.hkDEL> wrote in message <he2cfb$42d$1@fred.mathworks.com>...
> Hi,
> 
> I'm pretty happy with the below "undocumented" functionality. Got myself a nice m-file now can run to get a new desktop looking like i want it too (i prefer light text on a dark background for instance). However, it seems not all preferences are actually in the matlab.prf file. Specifically, I am trying to do settings for cell highlighting, those two checkboxes and one color do not seem to be in the preferences file. I'm on R2009b, but I suppose any older version wouldn't have them too.
> 
> Does anybody know where to find them / if it is possible to set them by commands?
> 
> If anybody is interested in my configuration script, I can paste it in on request.
> 
> Best and thanks!
> Dee

Of course they are in matlab.prf:
EditorCodepadHighVisible=Btrue
Editorhighlight-lines=C-197412
EditorCodeBlockDividers=Bfalse

In the future, all you have to do to get the name of a specific preference, is to save a version of matlab.prf before and after updating the preferences, then use any diff tool (even Matlab's built-in diff tool) to immediately get the preference name(s).

Yair Altman
http://UndocumentedMatlab.com