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

the amount of cold working metal can withstand is directly related to which properties? name two and also discuss the effect that cold working has upon these properties?

A pump delivers 40 lpm to a 100 mm bore/25 mm rod cylinder to move a load of 22 kN. A throttle is introduced on the rod end, and return flow with a 10 lpm flow rate. A 70 bar press

ELECTRICAL DE-ICING SYSTEM MAINTENANCE: Tests of the system must be carried out when the servicing schedule required it or when a component has been replaced.  Typical tests ar

I have a homework assignment with 12 present value and future value related investment problems. Can you guys help with me these types of problems please?

Synchro resolvers for high load The receiver rotor is driven by an electric motor to a null position, i.e. the receiver coil will be aligned at 90 o  to the transmitter coil. A

what is differnce between need and requirement?

Specific Air Range & Specific Endurance  Key cruise parameters are Range (distance flown) and Endurance (time of flight). It is important to be able to relate these to the amou

detail information about production planning in tool engineering

Susceptibility: Susceptibility to products of combustion, which includes metabolism, lung capacity, pulmonary disease, allergies, or other physical limitations that affect sur