C = setxor(A, B)
[C, ia, ib] = setxor(A, B)
| Parameter | Description |
|---|---|
| A, B | Input arrays. |
| Parameter | Description |
|---|---|
| C | Sorted values that are in only one of the input arrays. |
| ia, ib | Index vectors into A and B. |
setxor(A, B) returns values that occur in A or B, but not both.
A = [5 7 1];
B = [3 1 1];
C = setxor(A, B)
| Version | Description |
|---|---|
| 2.0.0 | initial version |