Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!flpi088.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!nlpi069.nbdc.sbc.com.POSTED!ffbda4aa!not-for-mail
Reply-To: "Nasser Abbasi" <nma@12000.org>
From: "Nasser Abbasi" <nma@12000.org>
Newsgroups: comp.soft-sys.matlab
References: <fqjpma$66c$1@fred.mathworks.com> <fqnaea$370$1@fred.mathworks.com>  <58baeb5c-160f-44d9-b317-b78a927aa804@d1g2000hsg.googlegroups.com> <g46etg$pmu$1@fred.mathworks.com>
Subject: Re: how to round to 2 decimal?
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
Message-ID: <YuI9k.8367$89.7795@nlpi069.nbdc.sbc.com>
NNTP-Posting-Host: 75.37.129.77
X-Complaints-To: abuse@prodigy.net
X-Trace: nlpi069.nbdc.sbc.com 1214731320 ST000 75.37.129.77 (Sun, 29 Jun 2008 05:22:00 EDT)
NNTP-Posting-Date: Sun, 29 Jun 2008 05:22:00 EDT
Organization: at&t http://my.att.net/
X-UserInfo1: SCSYQN_@OPUUS_DS\@^HJFP@AJYZTB\MV@BNMRQIMASJETAANVW[AKWZE\]^XQWIGNE_[EBL@^_\^JOCQ^RSNVLGTFTKHTXHHP[NB\_C@\SD@EP_[KCXX__AGDDEKGFNB\ZOKLRNCY_CGG[RHT_UN@C_BSY\G__IJIX_PLSA[CCFAULEY\FL\VLGANTQQ]FN
Date: Sun, 29 Jun 2008 02:21:55 -0700
Xref: news.mathworks.com comp.soft-sys.matlab:476459



"us " <us@neurol.unizh.ch> wrote in message 
news:g46etg$pmu$1@fred.mathworks.com...
> zia:
> <SNIP another solution - another world...
>
>> Try this
>> x =3D 1.23456
>> quant(x,2)
>
> you should tell the OP that your solution requires the
> neural network tbx...
>
> us

humm.. he pasted the one line source code for quant().

"function output = quant(number,digit)

output = round(number.*(10 ^ digit))./(10 ^ digit);"

So one can just copy it and use it. no need for neural netwrok toolbox?

Nasser