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

Heisenberg''s uncertainty principle , According to this it is impossible to...

According to this it is impossible to specify precisely and simultaneously two physical quantities those are canonically conjugate to each other and the product of the uncertainty

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

Power factor., how can decrease the power factor of any electric circuit

how can decrease the power factor of any electric circuit

Adder /subtractor, operation of adder/subtraction by using truthtable

operation of adder/subtraction by using truthtable

Mechanism for dislocation in plastic deformation, Q. Explain the mechanism ...

Q. Explain the mechanism for dislocation in plastic deformation. Ans.  Stresses are acting on dislocation in a crystal that is known as stress field, due to these stress forc

Casting, Casting means the pouring of molten metal into a mould, where soli...

Casting means the pouring of molten metal into a mould, where solidification occurs. Advantages of Casting Process          (i) It is the cheapest method of fabrication.

Image orthicon camera tube, What are the disadvantages of Image Orthicon Ca...

What are the disadvantages of Image Orthicon Camera tube

Mergers Acquisition Pooling of interests method, Mergers Acquisition Merge...

Mergers Acquisition Mergers and acquisitions involve complex accounting treatment a merger, defined as amalgamation in India, involves the absorption of the target company by the

Heat transfer, Q. 1 A 50 cm diameter pipeline in the Arctic Carries hot oi...

Q. 1 A 50 cm diameter pipeline in the Arctic Carries hot oil at 30 0C and exposed to a coefficient surrounding temperature of -20 0C. Special powder insulation 5 cm thick surround

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