is inclusive or not in array

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

is inclusive or not in array

turbofib
This post was updated on .
hi,

look this array :

>> aa
aa =

   2   3   5

>> bb
bb =

   1   3   2


i want to know which element aa are inclusive in bb

(2 3 5) (1 3 2) ====> 2 3

i try use find(aa=bb)  but is not correct because it consider too position



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html

Reply | Threaded
Open this post in threaded view
|

Re: is inclusive or not in array

John W. Eaton
Administrator
HI,

Please use the help-octave mailing list for questions about using
Octave.  It is also known as "Octave - General" on Nabble.

The maintainers list is meant for discussions among the Octave
developers about developing Octave.

jwe


On 10/29/2018 11:19 AM, turbofib wrote:

> hi,
>
> look this array :
>
>>> aa
> aa =
>
>     2   3   5
>
>>> bb
> bb =
>
>     1   3   2
>
>
> i want to know whick element aa are inclusive in bb
>
> (2 3 5) (1 3 2) ====> 2 3
>
> i try use find(aa=bb)  but is not correct because it consider too position
>
>
>
> --
> Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html
>