|
From: | Goebel, Juergen |
Subject: | comparing two matrices |
Date: | Tue, 22 Jul 2008 09:32:40 +0200 |
Hi,
I'd like to compare two row (or column) matrices
and get a resulting matrix in which the different
positions are marked by a one, e.g.
A = [0 1 2 3 0 1 2 3]
B = [0 0 2 3 0 1 2 2]
result: [0 1 0 0 0 0 0 1]
How do I achieve this? (I already played a bit
with the find-function but without success.)
Regards,
Juergen
[Prev in Thread] | Current Thread | [Next in Thread] |