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
Air Operator's Certificate (AOC) A Company operating an aircraft for the purpose of Public Transportation, within the UK, must have an AOC granted to the company, in accordance

In the previous discussion, we investigated the static aeroelastic behaviour of straight (unswept) wings. These wings are characterised by an effective decoupling of wing bending a

The various cementing materials are classified as follows. a) Argillaceous cementing materials b) Calcareous cementing materials c) Carbonaceous cementing materials Argillaceous Ma


vx woks is areal time operating system or not


It consists o a source of x ray, with a number of collimated slits. Crystal under investigation is mounted on a table, and the position of this table can be recorded on vernier sca

Electro-mechanical fuel control: The start fuel valve and ignition are energised as soon as rotation (3%) is sensed by an Electronic Sequence Unit (ESU). At 14% and with risin

Who is a more senior creditor, a bondholder or stockholder?  The bondholder is always more mature. Stockholders (including those who own recommended stock) must delay until bond

what is lloyd''s length