help-octave
[Top][All Lists]
Advanced

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

Re: comparing two matrices


From: bharat pathak
Subject: Re: comparing two matrices
Date: Tue, 22 Jul 2008 13:27:48 +0530

this can be done by
 
C = ~(A == B)
 
regards,
bharat pathak
 
Arithos Designs
www.Arithos.com
 
 
 

Sent: Tuesday, July 22, 2008 1:02 PM
Subject: comparing two matrices

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

No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.5.3/1565 - Release Date: 21-07-2008 18:36


_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave

reply via email to

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