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

Flames obtained in an oxyacetylene gas welding process, Q.  Describe the t...

Q.  Describe the types of flames obtained in an oxyacetylene gas welding process giving the applications. There are three types of flames in the gas welding on the base of the

Market segmentation analysis for an organization, 1. Briefly explain how to...

1. Briefly explain how to conduct a market segmentation analysis for an organization. Answer: There are a number of ways by which the market segmentation analysis of an organizatio

Engineering Chemistry , How much heat in kJ is released when 4.1 grams of e...

How much heat in kJ is released when 4.1 grams of ethanol burns? C2H5OH(l) + 3 O2(g) ? 2 CO2(g) + 3 H2O(l), ?H = -1366.8 kJ/mol rxn

Slipstream effect - propeller, Slipstream Effect. In passing through th...

Slipstream Effect. In passing through the propeller the air is accelerated and given a rotational velocity. The parts of the aircraft that are in the propeller slipstream wi

Flight dynamics-trim tabs, Trim tabs are small flaps attached to the rear o...

Trim tabs are small flaps attached to the rear of the main control surfaces. They can be adjusted the pilot to reduce the force required to hold the control surface in its deflecte

Light wave and matters, Expertsmind.com brings you unique solution in phy...

Expertsmind.com brings you unique solution in physics -          What is light? -            -          Light is an electromagnetic wave that also comes in "photons"

Finance Project, You are interested in proposing a new venture to the manag...

You are interested in proposing a new venture to the management of your company. Pertinent financial information is given below. BALANCE SHEET Cash 2,000,000 Accounts Payable and

Spreading function and scattering function, In a CDMA system, the signal is...

In a CDMA system, the signal is spread over a large bandwidth by multiplying the transmitted symbol by a sequence of short pulses, also called chips. The system bandwidth is thus d

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