Function intersect - set operations, Other Engineering

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


Posted Date: 10/22/2012 7:34:03 AM | Location : United States

Related Discussions:- Function intersect - set operations, Assignment Help, Ask Question on Function intersect - set operations, Get Answer, Expert's Help, Function intersect - set operations Discussions

Write discussion on Function intersect - set operations
Your posts are moderated
Related Questions
A car battery is of 12 v. eight dry cells of 1.5 v each connected in series can give 12 v. but such cells are not used in starting a car. why?

PROPELLER TRACK An out of track propeller will suffer an imbalance caused by the Dynamic and Aerodynamic being out of balance. Propeller track is the path followed by a blad

Special Casting Methods             1. Die casting : Die casting is a permanent mould casting techniques in which molten metal is forced in the mould cavity under a pressure

write an algorithm to find a number that multiplies your name 10 times

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

When light of frequency greater than threshold frequency fall on a metal surface, electrons are emitted out from metal surface this effect is known as photoelectric effect. Laws

Signal modulation Modulation involves the modification of some property of a (usually sinusoidal) carrier waveform. The process of recovering the original signal from the modul

limitations of nernsts law

The second order (two degree of freedom) Dutch-Roll approximation is an approximation to the above fourth order system for the Dutch Roll dynamics. A justification for this is to c