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

Matlab, program how to estimate the inner curve using spline interpolation

program how to estimate the inner curve using spline interpolation

Turbine cooling - aircraft engine, Turbine cooling  Airflow: Figure ill...

Turbine cooling  Airflow: Figure illustrates the turbine cooling airflow of a typical gas turbine engine. The outward flow of cooling air is controlled by air seals of multi-g

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

CHEMICAL, TRANSPORT 2 CHEMICAL PROCESS CONTROL CHEMICAL REACTIONS ENGINEERI...

TRANSPORT 2 CHEMICAL PROCESS CONTROL CHEMICAL REACTIONS ENGINEERING

Finance ass, Let C(K) denote a European vanilla Call option with strike pri...

Let C(K) denote a European vanilla Call option with strike price K. Assume that all options are identical except for strike price, and strike prices satisfy (K1) What are the no-

Investment allowance, Investment allowance Until a few years ago, a compan...

Investment allowance Until a few years ago, a company could charge an amount equal to 25 per cent of the original value of an asset as investment allowance in the period in which

Water distribution, examples dead end water distribution system

examples dead end water distribution system

ALGORITHM, write an algorithm to find a number that multiplies your name 10...

write an algorithm to find a number that multiplies your name 10 times

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