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

Mass balance reactions, A continuous fractionating column separates benzene...

A continuous fractionating column separates benzene and toluene into two product streams. We were given all the mass fractions which makes this question easy because all we must ca

FOCP, THE USER INTERFACE

THE USER INTERFACE

Base case NPV analysis , How base case NPV analysis is applied in financial...

How base case NPV analysis is applied in financial risk management

Legal issues and professional ethics in engineering, Write a detailed repor...

Write a detailed report under the theme "Legal Issues and Professional ethics in Engineering". Some of the topics that you can consider, but not limited to them, are as follow:

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,

Explain the instruction format of an assembler, Question 1 What is a compu...

Question 1 What is a computer? Explain the block diagram of a general purpose digital computer Question 2 Explain the instruction format of an assembler Question 3

Financial management, which type of finanacing is appropriate to each firm

which type of finanacing is appropriate to each firm

Oil tank- aircraft engine, Oil tank: The oil tank is usually mounted on...

Oil tank: The oil tank is usually mounted on the engine; it may be a separate unit or part of an external gearbox called the sump. It has provision to allow the system to be f

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