Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: matrix operations in F2
Date: Sat, 7 Nov 2009 15:12:00 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 20
Message-ID: <hd42o0$re0$1@fred.mathworks.com>
References: <hd3o8e$h25$1@fred.mathworks.com> <hd3uqu$ru1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257606720 28096 172.30.248.38 (7 Nov 2009 15:12:00 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 7 Nov 2009 15:12:00 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2081595
Xref: news.mathworks.com comp.soft-sys.matlab:583230


Not what I meant...
I need to solve a set of equations like

| 1 1 0 0 |  | x1 |    | 1 |
| 1 1 1 0 |  | x2 | = | 1 |
| 0 1 1 1 |  | x3 |    | 1 |
| 0 0 1 1 |  | x4 |    | 1 |

Under the conditions that 0-1=0 and 1+1=0, this results in
x = (1 0 0 1)

Now I need to do this for very large matrices....

"ade77 " <ade100a@gmail.com> wrote in message <hd3uqu$ru1$1@fred.mathworks.com>...
> 
> > 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?
> > 
> > Joren
> 
> type doc pinv or help pinv