Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail
From: dpb <none@non.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how do i convert string of 40 hex digits(160 bits) to 4 decimal
 digits(16 bits))
Date: Sun, 08 Nov 2009 15:06:12 -0600
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <hd7bsb$5lf$1@news.eternal-september.org>
References: <hd78mi$e3d$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX1/wyHQ0D4HakmWojv3ivgjz+FD3ejV+DQPGpEM2fuVKBKYf+7AL58ao9uIq/zNkHI0y1hAX8jPZwHBdaVslrOXGaEuftFA/vHPGROdRekz1ygf8mtVycNL18DsvNORXf/M=
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Sun, 8 Nov 2009 21:06:20 +0000 (UTC)
In-Reply-To: <hd78mi$e3d$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX19rwYruq9CkacNkqwvxVpGmseGx9FHykLs=
Cancel-Lock: sha1:d0+bLVAb1LTeQPdwg8+bjkpZ2VM=
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
Xref: news.mathworks.com comp.soft-sys.matlab:583407


arjun p wrote:
> i have a string of 40 hex digits (160 bits)like
> =E0FAACA506CC37B0B21D02460D210E9798EEEFDB
>  so how to convert it to 4 decimal digits(16 bits)?
> plz

sscanf(s,'%4x')

--