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
With x[n] denoting the input signal and y[n] denoting the output signal, give the difference equation relating the input signal to the output signal in the discrete-time domain, gi

I need some help

Describe the operation an 8086 will perform when it excutes ADD AX,BX


what a problem when we do a construction project

M/s XYZ Ltd manufactures a product “PLVS” at its plant at Meerut, the maximum capacity of which is 200 units per month. Details of raw materials which go into the making of 1 units

Industries that manufacture racing cars prefers nickel based alloys for engine components and iron based alloys for structural parts. Justify this statement.

True or False, In a PLC system, there is a physical connection between field input devices and output devices.


Abradable Linings: Abradable Linings are usually made of a composite material which will be abraded away should the tip of a rotating blade touch the material. In flight the ca