[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Comparison of vectors
From: |
Mario Storti |
Subject: |
Re: Comparison of vectors |
Date: |
Wed, 11 Nov 1998 13:39:11 -0300 |
>>>>> On Wed, 11 Nov 1998 17:31:40 +0100,
>>>>> Daniel Tourde <address@hidden> said:
> Hi !
> I would like to compare two vectors and to get 1 if and only if all
> their components are the same. How can I do ?
> If I use
> if (A == B)
> Then I obtain a vector of 0s and 1s of the length of A (resp. B) in
> function of what is matching. I just want a single answer. 1 if A is B,
> 0 otherwise.
> Thanks in advance for any information
Use
if (all(A==B))
Mario
%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%
Mario Alberto Storti | Fax: (54)(42) 55.09.44 |
Centro Internacional de Metodos Computacionales| Tel: (54)(42) 55.91.75 |
en Ingenieria - CIMEC (INTEC/CONICET-UNL) |........................|
INTEC, Guemes 3450 - 3000 Santa Fe, Argentina |
Reply: address@hidden, http://venus.unl.edu.ar/gtm-eng.html |