Function intersect - set operations, Other Engineering

Function intersect - set operations:

The function intersect returns, additionally to the vector having the values in the intersection of v1 and v2, an index vector into v1 and an index vector int v2 in such a way that outvec is similar as  v1(index1) and also v2(index2).

>> [outvec, index1, index2] = intersect(v1,v2)

outvec =

   3     5

index1 =

   2     4

index2 =

   2     3

By using such vectors to index into v1 and v2 will return the values from intersection. For illustration, such expression returns the second and fourth elements of v1:

>> v1(index1)

ans =

   3     5

This will return the second and third elements of v2:

>> v2(index2)

ans =

   3     5

 

Posted Date: 10/22/2012 7:34:03 AM | Location : United States







Related Discussions:- Function intersect - set operations, Assignment Help, Ask Question on Function intersect - set operations, Get Answer, Expert's Help, Function intersect - set operations Discussions

Write discussion on Function intersect - set operations
Your posts are moderated
Related Questions
how can you access the general purpose registers of Microprocessor in windows XP/2000/98...

What is crossover rate? They are produced by two different but identical tasks. The cross-over amount is the points at which the two tasks obtain the same net provide value. Wit

Would you be able to assit me with a 40 question, multiple chioice quiz today ?

An investment project provides cash inflows of $730 per year for eight years. What is the project payback period if the initial cost is $3,500? What if the initial cost is $5,000?

A charitable organization wants to design a special ATM machine to be used by needy people. The association supplies the needy person with a pin number to be able to use the ATM

Where do you think by DJIA? Nobody knows the respond to this one. However, you should at least have some ideas on the topic and be able to communicate why you think this is the


All fluids are to some extent compressible but gases show significant changes in density if pressure and/or temperature is changed. Some gas flows can be treated as being incomp


The unity gain follower: The somewhat lengthy term operational amplifier will now be dropped and it will be referred to, as most people do, simply as the op amp.  The simplest