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

Trigonometry( bearings and rectilinear figures), a pilot entering a bay on ...

a pilot entering a bay on course 60.3 degrees at speed 12 miles per hour sees a light bearing 37.3 true and 20 minutes later he sees it bearing 20.0 degrees true. if he keeps the

Accounting hep, Here are the budgets of Brandon Surgery Center for the mos...

Here are the budgets of Brandon Surgery Center for the most recent historical quarter (in thousands of dollars): Static Flexible Actual Number of surgeries 1,200 1,300 1,

Survey, Operations invending in chain survey

Operations invending in chain survey

Mos ic-s, MOS IC-S: Not all IC's are constructed using bipolar componen...

MOS IC-S: Not all IC's are constructed using bipolar components, IC's are often designed to utilize either bipolar transistors or "Field-Effect transistors" (FETS).  The Field

Designing a phone, hi um how do people design phones and stuff like da

hi um how do people design phones and stuff like da

Derive, derive the power in case of r-l circuit

derive the power in case of r-l circuit

Case study, dhpl is the firm situated in faridabad,its ending year on 31st ...

dhpl is the firm situated in faridabad,its ending year on 31st march 2009 ,1000million asset base rs.650 million & the net profit of the company was 76 milloin the managmnt of the

Software engineering, analyse modelling for safe home security system

analyse modelling for safe home security system

Detection and removal of shadow from an image, plz give an exact method for...

plz give an exact method for the detection and removal of shadow from an image

Aero Performance Problem, Given data for an F-4 (W=40000 lb, S=530 ft^2, Ta...

Given data for an F-4 (W=40000 lb, S=530 ft^2, Ta@sea level=35800 lb, Mach=1.5, h=20000 ft (std day), Cd0=.0224, k=.1516) find aircraft''s specific excess power in straight-and-lev

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