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

Events and its efffeccts, i need to prepare my aasingment for financial dat...

i need to prepare my aasingment for financial data analysis for that i need 10 business events

Eng, all projrct is correct excpet for last part it will not fire a table...

all projrct is correct excpet for last part it will not fire a table

Synchro resolvers for low load, Synchro resolvers for low load: Both tr...

Synchro resolvers for low load: Both transmitter and receiver rotors are energised by the same AC supply and will induce equal and opposing voltages in the stator coils provide

Gas Furnace, Furnace limit switches are wired in series with the?

Furnace limit switches are wired in series with the?

Aeroengines - grid conversion, When we solved our simple problem we saw tha...

When we solved our simple problem we saw that the truncation error was O(x) We therefore expect that as the number of grid points is was O(x). We therefore expect that as the numbe

Inlet duct arrangement in aircraft engine, Inlet duct arrangement in Aircra...

Inlet duct arrangement in Aircraft Engine: Wherever the APU is located, ducting will be required to bring air to the APU inlet. In figure 18.9. we can see that the inlet duct

Personal Financial Management Math College Level, How do you find initial m...

How do you find initial monthly payment for the second year after an adjustable-rate mortgage?

Applications of De, What are the applications of de.moivres theorem in soft...

What are the applications of de.moivres theorem in software engineering,computer science,programming and computer engineering? if there are any applications,then,what are that?

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