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
Consider the binary cycle using the sodium and steam/water in the sketch below and operating at conditions in Table 1. Draw T S Diagram and find the thermal cycle efficiency

I need help summarizing a technical paper.

how to making terrestrial tele scope an how its work and formulation of terrestrial telescope

advantages and disadvantages of coupling and cohesion

The firm is considering an investment opportunity. The investment falls in the same class of risk as the firm, the project is financed with equity and debt. Explain all the steps i

PEME5451/3451 SUSTAINABLE ENERGY PROCESSES Assignment 5: Transport fuels VLE submission deadline is Friday 24th February PART 1: (worth 40%, all parts marked equally) 1. Using the


Calculating the thrust of the engine: When applying the above method to calculate the individual thrust loads on the various components it is assumed that the engine is static.

compare zero- one- two- and three-address machines by writing programs to compute X=(A+B*C)/(D-E*F)

Aircraft fuel gauges Fuel gauge senders are capacitor transducers that consist of concentric tubular electrodes from top to bottom of the tank. They are distributed at various