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

Fluid mechanics, A body, with a volume of 2m^3, weights 40 kN. Determine it...

A body, with a volume of 2m^3, weights 40 kN. Determine its weight when submerged in liquid with S= 1.59.

Hanning window, what is a procedure of solving the questions using hanning ...

what is a procedure of solving the questions using hanning window while designing a fir filter?

Switching, name the switching schemes used in a digital exchange. how call ...

name the switching schemes used in a digital exchange. how call processing takes place?

machine molding, Machine molding is suitable for the faster and uniform qu...

Machine molding is suitable for the faster and uniform quality moulds, needed for mass production of castings. For preparing the moulds, various moulding machines are used. Majorit

Payback period method, Non-discounted cash flow method, Payback period met...

Non-discounted cash flow method, Payback period method In this method, time value of money is not considered. It takes into account the number of years required to recover the in

Turbine blade clearance of aircraft, Turbine Blade Clearance. Creep is ...

Turbine Blade Clearance. Creep is term used to describe the continuous and permanent stretching of turbine blades due to high temperatures and centrifugal forces acting on the

Propeller shafts, PROPELLER SHAFTS Most modern engines, both reciprocat...

PROPELLER SHAFTS Most modern engines, both reciprocating and turbine, have flanged propeller shafts. Some of these flanges have integral internally threaded bushings that fit

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,

Fire prevention - fire risk assessment, Fire prevention - fire risk assessm...

Fire prevention - fire risk assessment: Fire prevention measures include: Reducing the combustible materials, Reducing the risk of ignition, Reducing

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