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

Variables and quantifiers in first-order logic, Variables and Quantifiers i...

Variables and Quantifiers in First-Order Logic - Artificial intelligence: Now suppose that we wanted to say that there is a meal at the Red Lion which costs only three pounds.

Qualitative risk assessment - fire protection engineering, Qualitative risk...

Qualitative risk assessment - fire protection engineering: NFPA 551 discusses the differences between qualitative risk assessment and quantitative risk assessment. Qualitat

Programming, A charitable organization wants to design a special ATM machin...

A charitable organization wants to design a special ATM machine to be used by needy people. The association supplies the needy person with a pin number to be able to use the ATM

Fiber optics, 1. A very narrow laser beam in air is shone into a sphere of ...

1. A very narrow laser beam in air is shone into a sphere of solid glass that has a uniform refractive index n>1 and radius ? . The beam makes an angle a in air with the normal to

Classifications of moulding sands, 1. Generally moulding sands can be class...

1. Generally moulding sands can be classified as:           (a) Natural Sand           (b) Synthetic or High Silica Sand           (c) Chemically Coated Sand

Procedure of producing self lubricated bearings, The self lubricating beari...

The self lubricating bearing is a typical application of metal powder parts or powder metallurgy process. The self lubricating bearings made from brass, iron, aluminium bronze etc,

Pitot intakes - aircraft maintenance , Pitot intakes: This intake is su...

Pitot intakes: This intake is suitable for subsonic or low supersonic speeds. Examples, 707, 747, A300B, Tristar, etc. The intake is usually short and is very efficient becau

Case1, Flifla sells tomatoes every day in Suk al Marqazi, the downtown frui...

Flifla sells tomatoes every day in Suk al Marqazi, the downtown fruit and vegetable market. He finds that he can order tomatoes in crates of 25 kg and he is able to stock a maximum

Creep, strain rate on creep

strain rate on creep

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