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

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

Gutter fill, calculations about gutter fill?

calculations about gutter fill?

Show down any banking products and services offered, Question: a) E-b...

Question: a) E-banking is defined as the automated delivery of new and traditional banking products and services directly to customers through electronic, interactive commun

Solve problems using dc electrical principles, Electronics Engineering Assi...

Electronics Engineering Assignment# Solve problems using DC electrical principles 1.3 A 220 F capacitor is required to store 11mJ of energy. What voltage needs to appear

Reed solomon code, i have created simulink model for rs code with overlapp...

i have created simulink model for rs code with overlapped symbol and without overlapped symbol. and BIT ERROR RATE VERSUS EB/NO PLOT is observed for its performance analysis.but i

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

Wheatstone bridge, The resistance of the strain gauges is usually measured ...

The resistance of the strain gauges is usually measured with a Wheatstone bridge. All bridges have balancing circuits which can be apex or parallel. Both methods are equivalent.

SE, what is explicit conceptual model in SE

what is explicit conceptual model in SE

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