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

Which scheme provides the best spectrum capacity, Question: (a) What a...

Question: (a) What are the criteria that a frequency planner and a network engineer need to consider during cellular planning and design. (b) Assuming that you work as a c

Cost of debt, A company issues 15-year, $1,000 par-value bonds, with a coup...

A company issues 15-year, $1,000 par-value bonds, with a coupon rate of 5%. The bonds are sold for $619.70. The tax rate is 30%. Compute the cost of debt before taxes and after tax

Biomechanics, i have homework in my biomechanics class

i have homework in my biomechanics class

Illustrate flat plate collectors. Describe liquid fl, Illustrate flat plate...

Illustrate flat plate collectors. Describe liquid flat plate collector with relevant diagram.

Amplitude shift keying, figure of amplitude shift keying & it''s explainati...

figure of amplitude shift keying & it''s explaination

Case study, Which type of financing is appropriate to each firm?

Which type of financing is appropriate to each firm?

Thermodynamics, What are the importance of engineering thermodynamics

What are the importance of engineering thermodynamics

Water traetment, what are the different phosphates used in water treatment?...

what are the different phosphates used in water treatment?

thermodynamics, Steam enters in the turbine at 6 MPa and 450 deg C and exp...

Steam enters in the turbine at 6 MPa and 450 deg C and expands at some intermediate pressure 60 % of steam is extracted and remainder expands to 10 kPa at this Investigate the effe

Classifications of moulding sands, 1. Generally moulding sands can be class...

1. Generally moulding sands can be classified as:           (a) Natural Sand           (b) Synthetic or High Silica Sand           (c) Chemically Coated Sand

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