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

TANGENT GALVANOMETER, WHY THE NEEDLE OF TANGENT GALVANOMETER DEFLECT WITH I...

WHY THE NEEDLE OF TANGENT GALVANOMETER DEFLECT WITH INCREASING OR DECREASING CURRENT?

Spinning reticle seekers , Spinning Reticle Seekers  A spinning reti...

Spinning Reticle Seekers  A spinning reticle seeker contains a single thermal detector and a spinning patterned disk - such as the ‘Rising Sun' Reticle.   - consis

Optimization, Wild west produces two types of cowboy hats. Type 1 hat requi...

Wild west produces two types of cowboy hats. Type 1 hat requires twice as much labor time as a type 2. If all the available labor time is dedicated to type 2 alone, the company can

Java, 2. Differentiate between stream oriented and data gram oriented socke...

2. Differentiate between stream oriented and data gram oriented socket in java?

Engineering physics(find wavelenth of light), Interference fringes are prod...

Interference fringes are produced by fresnel''s biprism in the focal plane of an eyepiece 200 cm away from the slit.Two images of the slit that formed each of the two positions of

Turbo shaft engines - aircraft engine , Turbo shaft engines : Gas turbi...

Turbo shaft engines : Gas turbine engines that deliver power through a shaft to operate something other than a propeller are referred to as turboshaft engines. In most cases th

Risk management, discuss the value of risk analysis and how the process can...

discuss the value of risk analysis and how the process can be used t derive project management decisions under conditions of uncertainty

Financial management, which type of finanacing is appropriate to each firm

which type of finanacing is appropriate to each firm

Physical chemistry, can you answer some problem from physical chemistry wit...

can you answer some problem from physical chemistry with a detailed approach why and how one should choose the steps in solving them.These are just random question that I have no c

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