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

Calculatethe tax disadvantage to organizing a U.S. business today, after passage of the Jobs and growth Tax relief reconciliation act of 2003, as a corporation versus a partnership

WHY VOLTAGE GENERATED IN MULTIPLES OF 11

How do you calculate IRR

STATIC & DYNAMIC BALANCING STATIC BALANCE When the weight distribution about the propeller axis is equal, with the propeller in any position, it is said to have static bal

how to find points on Ts diagram?

Aggregate properties 1.Aim: To compare the bulk density, voids ratio and angularity number of a nominal single sized aggregate when subjected to different levels of compaction

logic gate-OR gate  Figure shows the symbol that represents a 2 input OR gate together with its truth table. This gate will adopt a 1 state at its output terminal when either

High rise buildings: High rise buildings have their own particular requirements for fire safety and for fire fighting.  Means of escape rely on most people descending the stai

find the relation between enthalpy and internal energy?