Function setxor and set function unique - set operations, Other Engineering

Assignment Help:

Function setxor and set function unique:

The function setxor receives two vectors as input arguments, and returns a vector having all the values from the two vectors which are not in the intersection of these two vectors. In another word, it is the union of two vectors obtained by using setdiff former!

>> setxor(v1,v2)

ans =

1 2 4 6 7

>> union(setdiff(v1,v2), setdiff(v2,v1))

ans =

1 2 4 6 7

The set function unique returns all the exclusive values from the set argument:

>> v3 = [1:5 3:6]

v3 =

1 2 3 4 5 3 4 5 6

>> unique(v3)

ans =

1 2 3 4 5 6

Most of the set functions return vectors which can be used to index into the original vectors as optional output arguments; for illustration, for the two vectors v1 and v2 defined formerly as:

>> v1

v1 =

2 3 4 5 6

>> v2

v2 =

1 3 5 7


Related Discussions:- Function setxor and set function unique - set operations

Engine lubrication systems - air craft engine , Engine lubrication systems ...

Engine lubrication systems There are basically two types of lubrication system at present in use in gas turbine engines:- a) Recirculatory. In this system, oil is distribut

Application to the axial flow compressor, APPLICATION TO THE AXIAL FLOW COM...

APPLICATION TO THE AXIAL FLOW COMPRESSOR: In order for the compressor to deliver a high mass airflow for a minimum effort required to drive it, it is important that all the com

The brayton cycle-aeronautical engineering, The brayton cycle: The work...

The brayton cycle: The working cycle of the gas turbine engine is similar to that of the four-stroke piston engine.  There is induction, compression, ignition and exhaust in bo

Static electricity in aircraft, Static electricity in aircraft: As ment...

Static electricity in aircraft: As mentioned earlier, the effects of static electricity are of considerable importance in the design of aircraft and aircraft equipment. An air

Math modelling, As an engineering student, the ministry of energy and miner...

As an engineering student, the ministry of energy and minerals has tasked you to help them model equation(s) that can estimate the amount of crude oil in a reservoir. The governmen

Climbing drum peel test , Climbing Drum Peel Test The CDP test works by a...

Climbing Drum Peel Test The CDP test works by attaching a free end of a face sheet of a sandwich panel to a drum which then rolls across the panel, peeling off the face sheet. A

DIGITAL SIGNAL PROCESSING, PROBLEM BASED ON USING CHEBYSCHEV IIR FILTER USI...

PROBLEM BASED ON USING CHEBYSCHEV IIR FILTER USING BILINEAR TRANSFORMATION

Function intersect - set operations, Function intersect - set operations: ...

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

Unit operations , Can you guys Solve Unit Operations Problems in Chemical e...

Can you guys Solve Unit Operations Problems in Chemical engineering

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