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
Variant Aircraft A variant aircraft is one that embodies certain design features which differ from one for which a Certificate of Airworthiness (C of A) has previously been iss

oilcois building a refinery to procduce four products diesel, gasoline

External air tappings: Engines vary as to the number of external air tappings and their usage. The following notes are taken from the Pratt and Whitney JT9D but have been simp

Company: British Sky Broadcasting Topic: You are a security analyst in a large investment house and must write a report on a real stock of your choice, giving a buy, hold or sell r

find the newton raphson iterative formula for a reciprocal of a number N and hence find the value of 1/23.correct to 5 place of decimal

Pitch control unit (pcu) operation: The action of the Governor bob weights, due to the varying RPM of the engine, is to raise or lower an internal piston to cover or open fluid

Would you be able to assit me with a 40 question, multiple chioice quiz today ?

a note on tracing a closed loop. What are the characteristic features of a closed loop?(

explain any two finishing processes in detail with neat diagram

Design of Casting : The important factors to keep in mind when designing a casting to obtain maximum strength and minimum casting includes :             1. Design for direction