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

Non-coplaner, ''If a non-coplaner force system is acted upon by equal and o...

''If a non-coplaner force system is acted upon by equal and opposite forces,it must be in equilibrium''.State this statement is true or false.Please,give me a reason.

..introduction to networking, Explain bus topology and peer to peer network...

Explain bus topology and peer to peer network concepts

Capital budgeting decisions, Capital Budgeting Decisions The most important...

Capital Budgeting Decisions The most important function of a finance manager is the efficient allocation of its capital. The investment decision of a firm is termed as capital budg

microprocessors, how can you access the general purpose registers of Micro...

how can you access the general purpose registers of Microprocessor in windows XP/2000/98...

Line the crown of the tunnel, A 10m diameter circular tunnel is to be excav...

A 10m diameter circular tunnel is to be excavated in a jointed ground.  The joint sets spaced at 6m are dipping towards the West at 50°.  A horizontal circular tunnel is to be cons

Installation of propeller, INSTALLATION OF PROPELLER The method of inst...

INSTALLATION OF PROPELLER The method of installation will depend on the type of propeller, and all instructions detailed in the appropriate AMM should be carefully followed; th

Time value of money-inflation-interest rate-opportunity cost, Time Value of...

Time Value of Money Consider your cheese steak hoagie business. Assume that Phillies will win another World Series, and your business will be hired to serve a party that will

Finance choice, Question #1 Which of the following statements is false? ...

Question #1 Which of the following statements is false? A) For corporations, interest paid on its debt is a tax deductible expense. B) For corporations, dividend paid on its

Operation research, what is the difference between stepping stone method an...

what is the difference between stepping stone method and the MODI

Aircraft fuel gauges, Aircraft fuel gauges Fuel gauge senders are capac...

Aircraft fuel gauges Fuel gauge senders are capacitor transducers that consist of concentric tubular electrodes from top to bottom of the tank. They are distributed at various

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