Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Selecting spcific vectors from vector array' topicStudent Support Forum > General > Archives > "Selecting spcific vectors from vector array"

Next Comment >Help | Reply To Topic
Author Comment/Response
Tamás
02/28/11 09:46am

Hello.

I'll get to the point.
I am looking for a method of creating a subarray from an array of vectors.
The vectors are possible subsets with 3 elements from 1,2,...F.
I generated them with e.g.:

g = Tuples[Range[2], 3], the range is going to change depending on needs.

Now, I need to find/select those triplets where either the first OR second vector component is not equal to the third or if BOTH are equal to the third.

I'd like to put those triplets that are OK into a new matrix/array so that I can handle them separately later on.

Any idea?

Thanks.
T.

URL: ,

Subject (listing for 'Selecting spcific vectors from vector array')
Author Date Posted
Selecting spcific vectors from vector array Tamás 02/28/11 09:46am
Re: Selecting spcific vectors from vector array Isaac 02/28/11 2:18pm
Re: Selecting spcific vectors from vector array Tamás 02/28/11 2:54pm
Re: Selecting spcific vectors from vector array Isaac 03/02/11 09:01am
Next Comment >Help | Reply To Topic