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

What is trial balance?, What is Trial Balance?  All business periodicall...

What is Trial Balance?  All business periodically tabulate the charge and credit worthiness stability separately in a declaration to see whether the complete of charge account b

Case study, Which type of financing is appropriate to each firm?

Which type of financing is appropriate to each firm?

Vertical spread, What are the no-arbitrage lower bound, and the no-arbitrag...

What are the no-arbitrage lower bound, and the no-arbitrage upper bound, of the vertical spread

Wire drawing, Wire Drawing involves pulling the metal through a die by mea...

Wire Drawing involves pulling the metal through a die by means of tensile force applied to the exit side of the die.          A typical wire drawing operation is shown in fig.

Aerofoil aerodynamics – low speed flows, We now have some idea about what m...

We now have some idea about what models are available to simulate the flow over an aerofoil, and also how to use the Hanley package to apply these methods. Keep referring to you

Operations reseach techniques, how does operations reseach enable in reveal...

how does operations reseach enable in revealing new problems

Core competencies that produce value, 1. What are the core competencies tha...

1. What are the core competencies that produce value? Answer: The core competencies of an organization which produce value are: i. Marketing: Every organization produces a product

Propeller control in aircraft engine, Propeller control : CONSTANT SPE...

Propeller control : CONSTANT SPEED UNIT: In the normal flight range, the main control of the propeller is exercised by the propeller control unit (PCU). MANUAL AND AU

Enthalpy, What is the deference between enthalpy anne internal energy u

What is the deference between enthalpy anne internal energy u

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