comparing two matrices

Goebel, Juergen juergen.goebel at eads.com
Tue Jul 22 02:32:40 CDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080722/18cb5b8c/attachment.html 


More information about the Help-octave mailing list