Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Changing preferences from command line
Date: Fri, 17 Aug 2007 13:53:35 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 16
Message-ID: <fa498v$hr8$1@fred.mathworks.com>
References: <f9vhri$orl$1@fred.mathworks.com> <fa415r$kk8$1@fred.mathworks.com> <fa48lm$834$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1187358815 18280 172.30.248.38 (17 Aug 2007 13:53:35 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 17 Aug 2007 13:53:35 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:424303



> <pref-type> appears to be one of these:
>   - 'J' => int32
>
com.mathworks.services.Prefs.set<type>Pref(<pref-name>,newValue);
> <type>: one of Boolean, Color, RGBColor, Font, Integer,
> Rectangle, String, Double (I believe Doubles get converted
> to int32 - possibly a bitwise casting since both use 32 bits)

Small correction: doubles get stored in 8 bytes (=64 bits)
so either the 'J' <pref-type> is actually an int64 (not
int32), or some other conversion takes place for doubles
that I am not aware of.

Yair Altman
http://ymasoftware.com