Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.aset.psu.edu!support1.mathforum.org!not-for-mail
From: Yumnam Kirani Singh <kirani.singh@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Manipulation of Binary Numbers
Date: Tue, 05 Feb 2008 00:12:22 EST
Organization: The Math Forum
Lines: 1
Message-ID: <3346687.1202188373240.JavaMail.jakarta@nitrogen.mathforum.org>
References: <fo8k0e$6mr$1@fred.mathworks.com>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1202188373 15054 144.118.30.135 (5 Feb 2008 05:12:53 GMT)
X-Complaints-To: news@support1.mathforum.org
NNTP-Posting-Date: Tue, 5 Feb 2008 05:12:53 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:449304


you can do in the following way. First convert the two vectors into equivalent decimal using bin2decbin and then add togather. Convert the result back to biary vector using dec2binvec. You may need to used fliplr or wrev for your purpose.