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

Aeroengine - degree of reaction, Degree of reaction measures the way compre...

Degree of reaction measures the way compression or expansion (for turbines) is shared between rotor and stator shared between rotor and stator of a stage (stage ≡ rotor + stator)

The brayton cycle-aeronautical engineering, The brayton cycle: The work...

The brayton cycle: The working cycle of the gas turbine engine is similar to that of the four-stroke piston engine.  There is induction, compression, ignition and exhaust in bo

Resection, method of solving resection

method of solving resection

Engine speed indicators, Engine speed indicators: All engines have thei...

Engine speed indicators: All engines have their rotational speed (R.P.M.) indicated. On a twin or triple-spool engine, the high pressure assembly speed is always indicated; in

Co-ordination number, Q.  Define co-ordination number. Ans.CO-ORDINAT...

Q.  Define co-ordination number. Ans.CO-ORDINATION NUMBER: The number of atoms which are directly surrounding a given atom is known as coordination number. Number of atoms w

Request for quote, I need the following corporate finance problems complete...

I need the following corporate finance problems completed in an excel spreadsheet. How much would this cost? 1) An investment project requires a net investment of $100,000. The pr

Cadmium telluride, what are the manufacturing processes used in cadmium tel...

what are the manufacturing processes used in cadmium telluride manufacture?

Evaporation, 2-17 Given a wind speed of 5.0 m/s at 2 m above the ground and...

2-17 Given a wind speed of 5.0 m/s at 2 m above the ground and a roughness length of 0.8 cm, compute (a) the friction velocity, in centimeters per second, and (b) the wind speed, i

Diffuser action-aircraft maintance, Diffuser action: The flare, which i...

Diffuser action: The flare, which increases the area of the duct, is known as a diffuser and its shape determines the rate of compression and the amount by which the air is com

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