Path: news.mathworks.com!not-for-mail
From: "Donn Shull" <donn.shull.no_spam@aetoolbox.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: FPT : how to inherit an fi object's attributes
Date: Sun, 17 Aug 2008 05:35:03 +0000 (UTC)
Organization: L &#38; D Engineering LLC
Lines: 17
Message-ID: <g88da7$g56$1@fred.mathworks.com>
References: <g84mjd$hpd$1@fred.mathworks.com>
Reply-To: "Donn Shull" <donn.shull.no_spam@aetoolbox.com>
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 1218951303 16550 172.30.248.37 (17 Aug 2008 05:35:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 17 Aug 2008 05:35:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 219306
Xref: news.mathworks.com comp.soft-sys.matlab:485873



The way you are doing this now is the "proper way" to do 
it. If you are looking for alternatives then you could 
create methods in the @embedded/@fi directory to give you 
more flexibility. For instance you could create a file 
setWordLength.m with this code:

function this = setWordLength(this, wordLength)

this.WordLength = wordLength;

in that directory. Then after restarting MATLAB you could 
do the following

aq = atan_quantized.copy;
aq.setWordLength(23);

But this would be an "improper way" to do this.