Path: news.mathworks.com!not-for-mail
From: "Michael Hui" <myhui@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Fixed-Point Toolbox : ProductWordLength
Date: Thu, 17 Jul 2008 23:36:02 +0000 (UTC)
Organization: Broadcom Corp
Lines: 13
Message-ID: <g5ol12$nrp$1@fred.mathworks.com>
Reply-To: "Michael Hui" <myhui@yahoo.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 1216337762 24441 172.30.248.37 (17 Jul 2008 23:36:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 17 Jul 2008 23:36:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1388863
Xref: news.mathworks.com comp.soft-sys.matlab:480136



I am starting to use Fixed-Point Toolbox, within an Embedded
MATLAB Function. I noticed that, since M code does not
support type definitions for variables, the
ProductWordLength attribute in the terms of an equation (its
RHS) determine the ProductWordLength of the product (its LHS).

This is quite a departure from conventional programming
language where you can separately specify the
ProductWordLength of each LHS of an equation.

So how do I model the case where a variable is stored in one
format only, but is used in multiple equations, each needing
a different ProductWordLength in its LHS?