[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: operations on binary matrices
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: operations on binary matrices |
Date: |
Fri, 25 Nov 2011 11:11:42 -0500 |
On 24 November 2011 18:55, mmasny <address@hidden> wrote:
> Thank you for the answer. I don't think mod(A*B,2) does what I need.
> It would work if I wanted to sum elements with exclusive
> discjunction (XOR). I want to use OR. For example for
>
> A = ones(2)
>
> mod(A*A,2) gives zeros(2). But what the program should return for
> A*A (where * stands for the multiplication I want) is ones(2).
Ah. Oops. Then do instead
A*B > 0
HTH,
- Jordi G. H.