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
Discuss the effect of supernetting on routing and explain how the issue has been tackled. Effect: increased routing information


Steam enters in the turbine at 6 MPa and 450 deg C and expands at some intermediate pressure 60 % of steam is extracted and remainder expands to 10 kPa at this Investigate the effe

explain the fibre optic communication system with block diagram

what is the equation relating the real exchange rate to the nominal exchange rate and domestic and foreign price levels

The Mode II fracture toughness is measured using the ENF  Typically, the specimen length is 120 mm, the width B is 20 mm, the thickness is between 3 and 5 mm and the distance be


TYPES OF ENGINE: The internal combustion engines for the automotive use may be classified according to the following considerations: Engine cycle Number of strokes F

Expertsmind.com offers Performing Numeric Computation matlab assignment help MATLAB contains numbers, precise, and technological innovation features to support all common tech

What happened when melonic acid heated