Function intersect - set operations, Other Engineering

Assignment Help:

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

 


Related Discussions:- Function intersect - set operations

Theory of solar system, Expertsmind.com brings you unique solution in ele...

Expertsmind.com brings you unique solution in electrical engineering Define terms of Galaxy Clusters, Basic Astronomical Objects, Astronomical Distance Units, Terms

Blow hole and pin hole porosity, Difference between   Blow hole and pin hol...

Difference between   Blow hole and pin hole porosity          Blow hole : They appear as cavities in a casting. When they are visible on the upper surface of the castings, th

Fluid mechanics, 2 horizontal flate plate 0.15mm apart and space between th...

2 horizontal flate plate 0.15mm apart and space between them is filled with an oil having viscosity 1poise the upper plate of area 1.5m2 is required to move with a speed of 0.5m/se

Aeroengines - comparison with analytical solution, The figure below compare...

The figure below compares the discrete solution with the exact analytical solution The error is largest at the right boundary where it is equal to solution. The error is largest at

Static unbalance-aircraft maintenance , Static Unbalance: This arises w...

Static Unbalance: This arises when two EQUAL unbalance masses are positioned at opposite ends of a rotor and spaced at 180 from each other. If placed on knife-edges, the rotor

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd