Path: news.mathworks.com!not-for-mail
From: "Diederick " <dcniehorsterDEL@hkuDEL.hkDEL>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Changing preferences from command line
Date: Fri, 20 Nov 2009 00:18:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <he4n7r$pu0$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> <he3j77$3j1$1@fred.mathworks.com>
Reply-To: "Diederick " <dcniehorsterDEL@hkuDEL.hkDEL>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1258676283 26560 172.30.248.38 (20 Nov 2009 00:18:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 20 Nov 2009 00:18:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1895497
Xref: news.mathworks.com comp.soft-sys.matlab:586599


Hi Yair,

Somehow I didn't recognize those as being the ones.
Thanks for the diff trick and the help!
Dee

"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message <he3j77$3j1$1@fred.mathworks.com>...
> "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