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

Combustion process, Combustion process: Air from the engine compressor ...

Combustion process: Air from the engine compressor enters the combustion chamber at a velocity up to 500 feet per second, but because at this velocity the air speed is far too

Mode iii interlaminar fracture toughness , Mode III Interlaminar Fracture T...

Mode III Interlaminar Fracture Toughness  The Mode III interlaminar fracture toughness of a composite can be measured using the split cantilever beam (SCB) geometry. Here, a c

What is tact?, What is Tact? Tact is nothing but a situational score ene...

What is Tact? Tact is nothing but a situational score energy. Once I had gone to a Govt workplace for getting documentation. There I was informed to provide unwanted fee more th

Materials in design, I have assignments to due and I''m wondering if you co...

I have assignments to due and I''m wondering if you could do it for me

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

Ans, How would you judge the potential profit ofBajaj Electronics on the fi...

How would you judge the potential profit ofBajaj Electronics on the first year of sales to Booth Plastics and give your views to increase the profit?

Sprinkler system - fire protection engineering, Sprinkler system - fire pro...

Sprinkler system - fire protection engineering Sprinkler systems may be installed in a building to achieve a number of different objectives.  Very often the primary reason for

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