From: "Ken Davis" <ken.davis@sparta.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: info on quantization
Message-ID: <938FDC17BB829C317E2D419C3ED844EE@in.webcrossing.raydaftYaTP>
Date: Mon, 23 Apr 2007 11:15:59 -0400
References: <ef54b0d.-1@webcrossing.raydaftYaTP>
NNTP-Posting-Host: 157.185.37.64
Lines: 22
Organization: SPARTA, INc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:404775



"rao" <madhukancherla@yahoo.co.in> wrote in message 
news:ef54b0d.-1@webcrossing.raydaftYaTP...
> Hi friends,
>
> I am working with signal processing tool box.
>
> 1). How to quantize the signal? Please provide the command or
> technique to implement. My task is to do a 8-bit quantization?
>
> 2). How can i preallocate memory for a variable, when i am using the
> same variable in a for loop? please provide any keyword other than
> "memory", to get more help on this.
>
> Thanks in advance
> regards
> Madhu

round, floor, or ceil will help you write your quantizer.

zeros will help you preallocate