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

Aerofoil aerodynamics – low speed flows, We now have some idea about what m...

We now have some idea about what models are available to simulate the flow over an aerofoil, and also how to use the Hanley package to apply these methods. Keep referring to you

Net present value method: npv, Discounted cash flow methods Net present val...

Discounted cash flow methods Net present value method: NPV It is one of the classic methods of evaluating the investment project. Here each potential projects value is find out its

Risk and return, if we are comparing the risk and return of two stocks. wha...

if we are comparing the risk and return of two stocks. what to calculate, what to analyza and what conclude

Engineering physics, when same music is played in veena and violin , we sha...

when same music is played in veena and violin , we shall hear the sound of

project on gas leakage detection, can any one please help with virtual cir...

can any one please help with virtual circuit simulation

Manual override relays, Manual override relays: When the manual-overrid...

Manual override relays: When the manual-override relays are not energised, this current flows through brushes riding on slip rings mounted on the propeller spinner bulkhead and

Explain the concept of postmodernism in detail, Question 1 Write a long no...

Question 1 Write a long note on Professional Cultures in a ‘Golden Age' Question 2 Write a long note on the Global and Local Interrelationship Question 3 Write a long no

Combustion chamber injection system - aircraft engine , Combustion chamber ...

Combustion chamber injection system: Injecting a water or water/methanol mixture into the combustion chambers increases the mass flow through the turbine and the high volumetri

Land surveying, Name and discuss the various uses of levelling in surveying...

Name and discuss the various uses of levelling in surveying

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