<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265233</link>
    <title>MATLAB Central Newsreader - matrix operations in F2</title>
    <description>Feed for thread: matrix operations in F2</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 07 Nov 2009 12:13:02 -0500</pubDate>
      <title>matrix operations in F2</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265233#692874</link>
      <author>Joren Heit</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
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?&lt;br&gt;
&lt;br&gt;
Joren</description>
    </item>
    <item>
      <pubDate>Sat, 07 Nov 2009 14:05:18 -0500</pubDate>
      <title>Re: matrix operations in F2</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265233#692882</link>
      <author>ade77 </author>
      <description>&lt;br&gt;
&amp;gt; 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?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Joren&lt;br&gt;
&lt;br&gt;
type doc pinv or help pinv</description>
    </item>
    <item>
      <pubDate>Sat, 07 Nov 2009 15:12:00 -0500</pubDate>
      <title>Re: matrix operations in F2</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265233#692897</link>
      <author>Joren Heit</author>
      <description>Not what I meant...&lt;br&gt;
I need to solve a set of equations like&lt;br&gt;
&lt;br&gt;
| 1 1 0 0 |  | x1 |    | 1 |&lt;br&gt;
| 1 1 1 0 |  | x2 | = | 1 |&lt;br&gt;
| 0 1 1 1 |  | x3 |    | 1 |&lt;br&gt;
| 0 0 1 1 |  | x4 |    | 1 |&lt;br&gt;
&lt;br&gt;
Under the conditions that 0-1=0 and 1+1=0, this results in&lt;br&gt;
x = (1 0 0 1)&lt;br&gt;
&lt;br&gt;
Now I need to do this for very large matrices....&lt;br&gt;
&lt;br&gt;
&quot;ade77 &quot; &amp;lt;ade100a@gmail.com&amp;gt; wrote in message &amp;lt;hd3uqu$ru1$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Joren&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; type doc pinv or help pinv</description>
    </item>
    <item>
      <pubDate>Sat, 07 Nov 2009 18:57:01 -0500</pubDate>
      <title>Re: matrix operations in F2</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265233#692917</link>
      <author>Bruno Luong</author>
      <description>&quot;Joren Heit&quot; &amp;lt;jorenheit@gmail.com&amp;gt; wrote in message &amp;lt;hd42o0$re0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Not what I meant...&lt;br&gt;
&amp;gt; I need to solve a set of equations like&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; | 1 1 0 0 |  | x1 |    | 1 |&lt;br&gt;
&amp;gt; | 1 1 1 0 |  | x2 | = | 1 |&lt;br&gt;
&amp;gt; | 0 1 1 1 |  | x3 |    | 1 |&lt;br&gt;
&amp;gt; | 0 0 1 1 |  | x4 |    | 1 |&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Under the conditions that 0-1=0 and 1+1=0, this results in&lt;br&gt;
&amp;gt; x = (1 0 0 1)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Now I need to do this for very large matrices....&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
I guess you have to write your own Gaussian pivoting, unless if there is such thing already on FEX.&lt;br&gt;
&lt;br&gt;
This has been discussed here:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/newsreader/view_thread/261760#684562&quot;&gt;http://www.mathworks.com/matlabcentral/newsreader/view_thread/261760#684562&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Bruno</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 23:41:36 -0500</pubDate>
      <title>Re: matrix operations in F2</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265233#693099</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Joren Heit&quot; &amp;lt;jorenheit@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:hd3o8e$h25$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I want to solve an equation of the form Ax=b, where A is an nxn square &lt;br&gt;
&amp;gt; matrix, and x and b are nx1 column vectors. Ofcourse, this can normally be &lt;br&gt;
&amp;gt; done using x=b/A. However, the matrices for A that I have are singular, &lt;br&gt;
&amp;gt; therefore there is no solution. In my case, there are solutions because &lt;br&gt;
&amp;gt; I'm working in F2. This means that there are only ones and zeros to be &lt;br&gt;
&amp;gt; concerned, and 1+1=0, 0-1=1. This way, the equation can be solved. Is &lt;br&gt;
&amp;gt; there a way in MATLAB to take this into account and let MATLAB solve &lt;br&gt;
&amp;gt; anyway?&lt;br&gt;
&lt;br&gt;
Since you're working in GF(2), the GF object from Communications Toolbox, &lt;br&gt;
may do what you want.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/products/communications/demos.html?file=/products/demos/shipping/comm/gfdemo.html&quot;&gt;http://www.mathworks.com/products/communications/demos.html?file=/products/demos/shipping/comm/gfdemo.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com&lt;br&gt;
comp.soft-sys.matlab (CSSM) FAQ: &lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ&lt;/a&gt; </description>
    </item>
  </channel>
</rss>

