Path: news.mathworks.com!not-for-mail
From: "alan dinno" <alan_dinno@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Conversion of Columns into Decimals
Date: Sat, 8 Dec 2007 01:34:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <fjcsag$t98$1@fred.mathworks.com>
Reply-To: "alan dinno" <alan_dinno@hotmail.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 1197077649 29992 172.30.248.37 (8 Dec 2007 01:34:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 8 Dec 2007 01:34:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1192926
Xref: news.mathworks.com comp.soft-sys.matlab:441515


Hi - If matrix A contains only bits,I want a row vector B 
(with same length as size(A,2)) that contains the 
conversion of each column in A into Decimal.

Example:

 A =[ 1 1 0 1 0
      0 0 1 1 1
      1 1 1 0 1
      1 0 0 1 1 ]

 B=[bin2dec(A col 1),bin2dec(A col 2),bin2dec(A col 3),...]

Thanks
alan