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

Causes of unbalance - aircraft design, Causes of unbalance Unbalance ma...

Causes of unbalance Unbalance may be caused by a variety of factors occurring singly or in combination with others. These factors include:- a) Eccentricity Eccentricity

Manufacturing process, why is it necessary for all engieers to about manufa...

why is it necessary for all engieers to about manufacturing process

Skeleton pattern, A half skeleton pattern for a hollow pipe is shown. Since...

A half skeleton pattern for a hollow pipe is shown. Since the pipe is symmetrical about the pouring line, the same pattern will serve the purpose of moulding both the halves in two

The compression after impact test, This Compression After Impact (CAI) test...

This Compression After Impact (CAI) test fixture was developed by the Boeing Company. The specimen, typically, but not necessarily, a quasi-isotropic laminate, is 6" long, 4" wide,

Class a amplifier operation, Expertsmind.com brings you unique solution in...

Expertsmind.com brings you unique solution in electrical engineering Class A Amplifier Operation Class A amplifiers are biased so that variations in input signal polarit

What is crossover rate?, What is crossover rate? They are produced by tw...

What is crossover rate? They are produced by two different but identical tasks. The cross-over amount is the points at which the two tasks obtain the same net provide value. Wit

Propeller terminology, PROPELLER TORQUE Propeller torque is produced by...

PROPELLER TORQUE Propeller torque is produced by the aerodynamic drag on the blades when in motion. Propeller torque acts in the plane of rotation and opposes engine torque.

Limited travel distances - means of escape, Limited travel distances - mean...

Limited travel distances - means of escape: Are travel distances within the maximum allowable distances published in the guidance? Is there good visibility in the

Calculate the maximum amount of recoverable resource, A 30m deep quarry pit...

A 30m deep quarry pit is to be constructed in a jointed basalt rock mass. The quarry management wants to maximise the side wall inclination to 70° for economic reasons. The geologi

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