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
Flow through axial-flow turbo machine rotors can often be assumed axisymmetric i.e. velocity components do not change around the rotor circumference either at inlet or at outlet. N

What is the difference between JOURNAL ENTRY & LEDGER?  Journal is a journal of unique entrance. It is a journal where all the dealings of organization have been registered rela

why we study r architecture?

Thrust augmentation: There are occasions when the maximum thrust from a basic gas turbine engine is inadequate and some method of increasing the available thrust is required wi

The self lubricating bearing is a typical application of metal powder parts or powder metallurgy process. The self lubricating bearings made from brass, iron, aluminium bronze etc,

micro structure of exogenous tree

Generally, there are three modes to describe different crack surface displacement in a cracked body. Mode I is opening or tensile mode where the crack surfaces move directly ap

Write question here...i want all the techniques objectives tools used limitations for cist control and cost objectives

Matlab is a 4th technology selection language, which is designed by The MathWorks. It provides an exact processing atmosphere. Matlab works a variety of math features like design o

Expertsmind.com  brings you unique solution in Electrical Engineering -           Jupiter and Saturn are made almost entirely of hydrogen and helium with