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

#title: Signal Processing, how to load a large file consisting hex bytes wi...

how to load a large file consisting hex bytes without spaces and plot the required bytes

Analog digital converter , Analog digital converter  Analog digital con...

Analog digital converter  Analog digital converter digitises the conditioned signal and presents it in a digital form, which is more convenient for long distance transmission,

Vehicle kinematics, x(t)=integration((Vx(t)+Vy(t))/2*cos(theta)dt) where Vx...

x(t)=integration((Vx(t)+Vy(t))/2*cos(theta)dt) where Vx, Vy and theta is a function of t I am getting problem with how to write it down in matlab in order to get the position x.

Moulding materials, The commonly used moulding materials for mould making...

The commonly used moulding materials for mould making can be broadly classified into the following two groups :             (a) Metals : Including grey cast iron, steel and an

Density correction factor, superheated steam flow measurement please provid...

superheated steam flow measurement please provide formula used for density correction factor

Strain hardening, Q. Define the concept of strain hardening. Ans. S...

Q. Define the concept of strain hardening. Ans. Strain hardening or work hardening in metal occurs because of interaction between the this location and some of obstruction.

Linear state space equations, Linear state space equations Linear state...

Linear state space equations Linear state space equations consist of a (difierential) state equation? x = Ax + Bu and an (algebraic) output equation y = Cx + Du whe

Neutral points of a bar magnet , Fix a drawing paper on a drawing board wit...

Fix a drawing paper on a drawing board with help of drawing pins. Place a magnetic needle on the drawing paper to identify geographical north and south poles. Mark north, sou

Blanking, Blanking involves cutting of the sheet metal along a closed outl...

Blanking involves cutting of the sheet metal along a closed outline in a single step to separate the piece from the surrounding stock. As shown in figure, the path that is cut out

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