help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

comparing two matrices


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]