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

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

Furnace limit switches are wired in series with the?

#title.graphics, draw diagonal scale of rf 1/500 and show 57.5m on it

draw diagonal scale of rf 1/500 and show 57.5m on it

Matlab, Provided a 1D array of integers, find all combinations of 3 values ...

Provided a 1D array of integers, find all combinations of 3 values from this set such that: a+b+c=0 For example, if one were provided with the set [3 1 3 -4 -6], the resulting answ

Composition of two simple harmonic motion at straight line, show the practi...

show the practical use of it also descibe it elaborately why it is useful which way we can use it where we use it

Nomenclature, Nomenclature • Information source device producing inform...

Nomenclature • Information source device producing information to be communicated • Binary digit (bit) fundamental information unit for all digital systems; unit of informat

Question for wator resources engineering, Compute the motor size required t...

Compute the motor size required to pump 28.3 cms through a 3,050 m long, 3.66 m diameter pipeline to an upper reservoir 610 m above the lower reservoir. Use a friction facter of 0.

Re-heat system in aircraft engine, RE-HEAT (AFTER BURNING) Re-heat is a...

RE-HEAT (AFTER BURNING) Re-heat is a system fitted to a gas turbine engine as a means of increasing the total thrust. As much as twice the thrust can be obtained using reheat.

Basic engine design considerations, BASIC ENGINE DESIGN CONSIDERATIONS ...

BASIC ENGINE DESIGN CONSIDERATIONS Effect of engine size: The two parameters involved are the diameter, d and stroke, L of the engine. The effect of doubling each of this

Calculate percent gain, Assume you invest $150 per month in a stock. Stock ...

Assume you invest $150 per month in a stock. Stock prices are as follows: January $10.50, February $9.75, March $9.50, April $11.00, May $10.75, June $9.75, July $9.00, August $8.5

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