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

Corporate finance, An investment project provides cash inflows of $730 per ...

An investment project provides cash inflows of $730 per year for eight years. What is the project payback period if the initial cost is $3,500? What if the initial cost is $5,000?

Vectors or matrices matlab, Vectors or matrices MATLAB can make and ope...

Vectors or matrices MATLAB can make and operate arrays of 1 (vectors), 2 (matrices), or more measurements. In the MATLAB language, a vector represents a one perspective (1×N or

1 year engg, state and explain varignons theorem

state and explain varignons theorem

Doble titration, object:THE NORMALITY OF STANDARD FAS SOLUTION(A)N/50.find ...

object:THE NORMALITY OF STANDARD FAS SOLUTION(A)N/50.find out the strenghth and normality of fas(b) using potasium permagnettetraoxide as intermidiate compound & self indicator

Which type of financing is appropriate to each firm?, .which type of financ...

.which type of financing is appropriate to each firm?

Assignment, I paid for and attached module 16 for answers this morning but ...

I paid for and attached module 16 for answers this morning but received answers for module 15. How can I get the correct set of answers for module 16 please

Normal spectrum, Q. What is a normal spectrum? Show that grating spectrum i...

Q. What is a normal spectrum? Show that grating spectrum is a normal spectrum. Ans. Normal spectrum and the dispersive power of grating is defined as the rate of change of a

Events and its efffeccts, i need to prepare my aasingment for financial dat...

i need to prepare my aasingment for financial data analysis for that i need 10 business events

True or false, Beta coefficients and standard deviation may be used as indi...

Beta coefficients and standard deviation may be used as indicators of risk

Powder coating issue, occasionally we are getting black streaks in our powd...

occasionally we are getting black streaks in our powder coated parts. Does not seem to be related to paint contamination or cleaning prep. Has anyone else seen this or know what co

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