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

Avionic systems design- static stability derivatives, Static stability der...

Static stability derivatives Static stability requires that a restoring action to any motions caused by forces and moments is auto-matically produced along and about the same a

Sprinkler installations in high rise buildings, Sprinkler installations in ...

Sprinkler installations in High rise buildings: The staircases in high rise buildings need extra protection against fire.  It can take a long time for everyone to descend the

Design structure matrix, what are the types of interactions in the design s...

what are the types of interactions in the design structure matrix?

Tensile strength of core materials , The tensile strength of the core mate...

The tensile strength of the core material in a sandwich structure can be determined using the flat-wise tension fixture shown below. The sandwich is bonded between two al

Fire safety management on railway stations, Fire safety management on railw...

Fire safety management on railway stations: Storage  tanks  are  not  allowed  above  underground  structures  or  within  a  certain distance of them. Some staff exits are

Rated breaking torque, Consider a 3-hp, 220-V, 1800-r/min separately excite...

Consider a 3-hp, 220-V, 1800-r/min separately excited dcmotor controlled by a single-phase fully controlled rectifierwith an ac source voltage of 230Vat 60Hz.Assume that the full-l

Long period oscillation , The phugoid is a relatively low-frequency oscilla...

The phugoid is a relatively low-frequency oscillation in which kinetic and potential energies are exchanged. The mode is generally characterized by low damping and approximately co

Analysis of the energy intensity, Analysis of the energy intensity and CO 2...

Analysis of the energy intensity and CO 2 emissions of a State a . From DOE/Energy Information Agency Florida profile is given by the following numbers (2009): What is

optimization, How to decouple complex variable matri

How to decouple complex variable matrix

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