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

Function generator, Expertsmind.com brings you unique solution in electri...

Expertsmind.com brings you unique solution in electrical engineering   What is a function generator? A function generator is a part of electronic device that prod

#title.electronic devices., Advantages and dis advantages of a diode in ser...

Advantages and dis advantages of a diode in series /shunt

Vibrating beam accelerometer, Vibrating beam accelerometer The electrod...

Vibrating beam accelerometer The electrodes are driven by a high frequency voltage (1 MHz). The displacement is measured using a phase detector from the change of capacitance b

Jfet operation - junction, JFET OPERATION Figure shows the operati...

JFET OPERATION Figure shows the operation of a JFET. The JUGFET has a physical structure that can be represented by the diagram shown in Figure. In Figure, if the N-Ty

Efficient market hypothesis, the nature and importance of the efficient mar...

the nature and importance of the efficient market hypothesis and comment on the implications for managers and investors?

Which type of financing is appropriate to each firm?, .which type of financ...

.which type of financing is appropriate to each firm?

LTE, WHATIS LTE CODING TECHNIQUES USE FOR MOBILE SYSTEM

WHATIS LTE CODING TECHNIQUES USE FOR MOBILE SYSTEM

Project, The database contains two very simple tables. One holds student i...

The database contains two very simple tables. One holds student information and the other holds assignment grade information. Our goal is to provide a very rudimentary interfa

Quantitative, Case 1: Decision Analysis Flifla sells tomatoes every day in...

Case 1: Decision Analysis Flifla sells tomatoes every day in Suk al Marqazi, the downtown fruit and vegetable market. He finds that he can order tomatoes in crates of 25 kg and he

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