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

Spectrum of data pulses, Spectrum of Data Pulses As the waveform period...

Spectrum of Data Pulses As the waveform period increases, the fundamental frequency of the spectrum decreases and the harmonics become more closely spaced. In the limit, as

Software engineering, what is differnce between need and requirement?

what is differnce between need and requirement?

Subtraction of two 16-bit numbers, write a programme of subtraction of two ...

write a programme of subtraction of two 16 bit numbers

Compressor damage, Compressor Damage Foreign objects often enter engine...

Compressor Damage Foreign objects often enter engine air intakes either accidentally or through carelessness. Items such as pens, pencils cigarette lighters etc. can be drawn o

Npv of an mba, Create an excel spreadsheet estimating NPV of an MBA

Create an excel spreadsheet estimating NPV of an MBA

Earth Summit, please tell me in detail that what is earth summit??????????

please tell me in detail that what is earth summit??????????

Smoke control system, Smoke control system: Where smoke control is ins...

Smoke control system: Where smoke control is installed in a building it is usual for there to also be sprinkler protection to the building and its contents.  This is necessary

Post graduation, i am doing be in mechanical engg in india. so can i do my ...

i am doing be in mechanical engg in india. so can i do my masters in geoophysic ?

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