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

Automatic synchronising - propellers, AUTOMATIC SYNCHRONISING: Automa...

AUTOMATIC SYNCHRONISING: Automatic Synchronisation uses engine driven synchronising alternators to detect electrically any increase or decrease in a slave engine's speed.  Ea

Divided entrance duct - aircraft engine, Divided entrance duct On a sin...

Divided entrance duct On a single engine aircraft with fuselage mounted engines, either a wing root inlet or a side scoop inlet may be used. The wing root inlet presents a pro

Pressure filter - aircraft maintenance , PRESSURE FILTER The pressure o...

PRESSURE FILTER The pressure oil filter housing contains a wire-wound or mesh, Paper or felt elements and incorporates a by-pass valve. The filter housing can be drained inde

Net working capital, Net working capital In computing net cash flows in th...

Net working capital In computing net cash flows in the above example, we have assumed that all revenues are received in cash and all expenses are paid in cash. In reality, the act

Production homework, my assingment is in petroleum engineering. Its product...

my assingment is in petroleum engineering. Its production class.Can you help me?

Development of surfaces, a hexagonal prism of 40mm side length of base and ...

a hexagonal prism of 40mm side length of base and height 80mm is resting on HP on its base with two edges of base is parallel to horizontal plane. A square hall of equally inclined

Choked nozzle and thrust correction - turbojet, Choked Nozzle Consideri...

Choked Nozzle Considering the formula for thrust under "choked" nozzle conditions: Thrust =(P-P 0 )A + WV j /g     Where: P = Pressure P = Ambien

Oil supply failure - propeller, Oil supply failure - Propeller: To prev...

Oil supply failure - Propeller: To prevent an overspeed caused by an oil supply failure, one of two methods may be employed: • Hydraulic lock valve The pitch lock mecha

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