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

Company Acquisition and Takeover vs acquisition , Company Acquisition, Take...

Company Acquisition, Takeover vs acquisition and holding copany A fundamental characteristic of merger (either through absorption or consolidation) is that the acquiring or amalg

Automatic interior car lights control, hi there, i need to know if its poss...

hi there, i need to know if its possible to create a circuit of automatic interior car lights control

Chemical engineering, A steel cylinder 10 cm in diameter and 10 cm long is ...

A steel cylinder 10 cm in diameter and 10 cm long is initially at 300 0C. it is immersed in an oil bath which is maintained at 40 0C, with h= 280 W/m2. 0C. Find the temperature at

Sources of engine noise - aircraft design, sources of engine noise To u...

sources of engine noise To understand the problem of engine noise suppression, it is necessary to have a working knowledge of the noise sources and their relative importance.

Assignment #5, the date december 13, 2005. Air traffic controllers in a con...

the date december 13, 2005. Air traffic controllers in a control tower in

Skeleton pattern, A half skeleton pattern for a hollow pipe is shown. Since...

A half skeleton pattern for a hollow pipe is shown. Since the pipe is symmetrical about the pouring line, the same pattern will serve the purpose of moulding both the halves in two

Dsp, relationship between z plane and s plane in bilinear transformation me...

relationship between z plane and s plane in bilinear transformation method

Alternative escape routes - means of escape, Alternative escape routes: ...

Alternative escape routes: Does everyone have access to the alternative routes or do some people have no choice about which way they go? Are all the escape routes

Electronics, what are basic think to select the bjt as switch

what are basic think to select the bjt as switch

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