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

Layout and operation of typical thrust reversing system, Layout and operati...

Layout and operation of typical thrust reversing system: Clamshell door system The clamshell door system is a pneumatically operated system, as shown in detail in fig Norm

Timber, seasoning of timber

seasoning of timber

Fuel system inhibiting, Fuel system inhibiting. The fuel used in turbi...

Fuel system inhibiting. The fuel used in turbine engines usually contains a small quantity of water which, if left in the system, could cause corrosion. All the fuel should th

Spot welding, In spot welding, the parts to be joined are normally over lap...

In spot welding, the parts to be joined are normally over lapped. The work piece are clamped between two water cooled copper electrodes. On the passage of a high transient current,

Wireless sensor networks, can we construct a body area sensor network in ma...

can we construct a body area sensor network in matlab as in ns-2.

Shell moulding process merits and demerits, Q. Describe shell moulding proc...

Q. Describe shell moulding process merits and demerits . Ans. Shell moulding process           Merits                                                   (i) Bett

Finance, et C(K) denote a European vanilla Call option with strike price K....

et C(K) denote a European vanilla Call option with strike price K. Assume that all options are identical except for strike price, and strike prices satisfy (K1) What are the no-a

Engineering Mechanics-Statics, http://www.cramster.com/answers-apr-12/mecha...

http://www.cramster.com/answers-apr-12/mechanical-engineering/engineering-mechanics-static_2386217.aspx?rec=0

Pov display, require help in making pov display

require help in making pov display

Skin-core debonding in sandwich structures, If the skins are peeled from th...

If the skins are peeled from the core, a sandwich structure loses its strength and stiffness. This can occur under - wave-slamming in fast ferries - rapid depressurisati

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