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

Crystal structure, how can we determine the crystal structure of material b...

how can we determine the crystal structure of material by having interplanar spacing d?

Construction, What are the problems arises during construction and their so...

What are the problems arises during construction and their solutions

Gas Furnace, Furnace limit switches are wired in series with the?

Furnace limit switches are wired in series with the?

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.

Relaibilty , can u help me with a reliabilty assignment

can u help me with a reliabilty assignment

Load flow studies from power generation and distribu, The load data given i...

The load data given in Table 1 belongs to a power company. Develop the daily load curve for the primary feeder. Also, determine: a. maximum coincident demand of the system b. deman

BIPOLAR AND UNIPOLAR DIGITAL ICs, EXPLAIN THE WORKING OF BASIC N-CHANNEL M...

EXPLAIN THE WORKING OF BASIC N-CHANNEL MOSFET SWITCH

Ideal intake conditions - aircraft engine, Ideal intake conditions: For...

Ideal intake conditions: For air to flow smoothly through a compressor, its velocity should be about 0.5 mach at the compressor inlet; this includes aircraft flying faster than

Propeller, asymmetric effect (p-factor)

asymmetric effect (p-factor)

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