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

Engineering Risk and Reliability , The demand placed on a system is describ...

The demand placed on a system is described by a lognormally distributed random variable with mean 50 and standard deviation of 10. The capacity of the system is modeled by a Weibul

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

CRO, different types of switches used in CRO

different types of switches used in CRO

Design project, im on my final year, My final project is to design a 2 stor...

im on my final year, My final project is to design a 2 story office building, i was wondering if i can get any help from this website

Nicol Prism., Explain the construction of nicol prism and its function.

Explain the construction of nicol prism and its function.

P d c, what are clippers

what are clippers

Fire risk assessment - fire protection engineering, What is a fire risk ass...

What is a fire risk assessment? Fire Risk Assessment (FRA) can mean different things to different people.  Here we will look at the understanding in the UK and the understandin

Functional checks of chemical de-icing systems, FUNCTIONAL CHECKS OF CHEMIC...

FUNCTIONAL CHECKS OF CHEMICAL DE-ICING SYSTEMS: Once the correct flow rate of the fluid supply has been established the distribution of the fluid flow over the blades should be

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