Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: matrix operations in F2
Date: Sun, 8 Nov 2009 18:41:36 -0500
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <hd7ktl$7in$1@fred.mathworks.com>
References: <hd3o8e$h25$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1257723637 7767 172.31.44.65 (8 Nov 2009 23:40:37 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 8 Nov 2009 23:40:37 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:583433



"Joren Heit" <jorenheit@gmail.com> wrote in message 
news:hd3o8e$h25$1@fred.mathworks.com...
> Hi,
>
> I want to solve an equation of the form Ax=b, where A is an nxn square 
> matrix, and x and b are nx1 column vectors. Ofcourse, this can normally be 
> done using x=b/A. However, the matrices for A that I have are singular, 
> therefore there is no solution. In my case, there are solutions because 
> I'm working in F2. This means that there are only ones and zeros to be 
> concerned, and 1+1=0, 0-1=1. This way, the equation can be solved. Is 
> there a way in MATLAB to take this into account and let MATLAB solve 
> anyway?

Since you're working in GF(2), the GF object from Communications Toolbox, 
may do what you want.

http://www.mathworks.com/products/communications/demos.html?file=/products/demos/shipping/comm/gfdemo.html

-- 
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ