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
I need the following corporate finance problems completed in an excel spreadsheet. How much would this cost? 1) An investment project requires a net investment of $100,000. The pr

#questiodescribe different types of cro probes

vx woks is areal time operating system or not

Providing alternative escape routes: The first thing to check is if everyone can turn away from the fire and move safely away from it. For this to be the case there will

Assume that a movie is two hours long, that the frame rate is 30 frames per second, and that the resolution per frame is 1080i (1920×1080 pixels per frame), and that each pixel is

Installing FLUENT on a MWS machine Fluent was originally developed on unix and graphical output was provided by calls to the X Windows graphics system For this reason provided by c

Turbine Discs and Blades: The inspection for cracks is of the utmost importance, most inspections are visual, the dye penetrant method of inspection being too impractical. Crac

explain the design should be traceable to the analysis model

Introduction Engineering Economic Analysis Definition: using a combination of quantitative and qualitative techniques to analyze economic differences among engineering design a

original temp. of plate is 25 degree c.when put in burnace its upper part is 250 c and lower is 100 and mass is 56kg.find out heat transfer