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

Compacting or briquetting, The operation of heating a green compact to an e...

The operation of heating a green compact to an elevated temperature is known as sintering. It is a process by which solid bodies are bonded by atomic forces. It is carried out belo

Corporate, Need help with a timed exam

Need help with a timed exam

Heat and mass transfer, Water enters a smooth thin-walled tube of 1 inch di...

Water enters a smooth thin-walled tube of 1 inch diameter at 50F and leaves at 150F. Heat is supplied to the water by condensing steam on the surface of the tube at a constant temp

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

Zero-coupon bond, Zero-Coupon Bond is a type of bond gives no periodic inte...

Zero-Coupon Bond is a type of bond gives no periodic interest payments, instead is sold at a steep discount from its face value. Due to these bonds these do not pay interest until

Cell arrays matlab, Expertsmind.com offers  Cell Arrays matlab assignment ...

Expertsmind.com offers  Cell Arrays matlab assignment help In matlab, Cell arrays are just like frequent arrays in that they are "indexed" details of information, with an out

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