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

Use of multicylinder engine, USE OF MULTICYLINDER ENGINE If, in a multi...

USE OF MULTICYLINDER ENGINE If, in a multi cylinder engine, power strokes are staggered, the limitation of flywheel can be overcome to a large extent. Torque diagram for 2 cyli

Financial Econometrics, In this assignment you are asked to demonstrate you...

In this assignment you are asked to demonstrate your understanding of both exploratory and statistical inference techniques described in class to investigate how the currency marke

Q1, 5) Dupree Funds is considering the fees charged by two banks. First Ame...

5) Dupree Funds is considering the fees charged by two banks. First America charges a flat rate of $0.11 per payment and First Western requires a deposit of $500,000 (that does not

Blow hole and pin hole porosity, Difference between   Blow hole and pin hol...

Difference between   Blow hole and pin hole porosity          Blow hole : They appear as cavities in a casting. When they are visible on the upper surface of the castings, th

Define instant demit account?, What is Demit Account? What is the use of...

What is Demit Account? What is the use of it? Demit indicates Dematerialization of reveal, in easy it is an account with which a individual can business in protection industry w

Pn junction diode, what is the effect of temperature on pn junction diode o...

what is the effect of temperature on pn junction diode of component

Spinning reticle seekers , Spinning Reticle Seekers  A spinning reti...

Spinning Reticle Seekers  A spinning reticle seeker contains a single thermal detector and a spinning patterned disk - such as the ‘Rising Sun' Reticle.   - consis

Long term goals behind artificial intelligence, Artificial Intelligence ...

Artificial Intelligence Artificial Intelligence is a typical science to describe, because it has fuzzy borders with, psychology, computer science, mathematics, philosophy, stat

Define the term technology, Question 1 Define the term technology. Write a...

Question 1 Define the term technology. Write a effective short note on evolution and growth of technology Question 2 Citing an example, state and explain the reasons that com

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