time | Calls | line |
---|
| | 1 | function tf = isUniqueNumeric(x) %#codegen
|
| | 2 | % ISUNIQUENUMERIC check if a numeric array contains only unique elements
|
| | 3 | % TF = ISUNIQUENUMERIC(X) returns true if a numeric array X contains
|
| | 4 | % only unique elements and false otherwise. ISUNIQUENUMERIC does not
|
| | 5 | % check for correct type, error conditions, nor return index of unique
|
| | 6 | % elements.
|
| | 7 |
|
| | 8 | % Copyright 2014-2019 The MathWorks, Inc.
|
| | 9 |
|
0.080 | 38634 | 10 | tf = all(diff(sort(x(:))));
|
0.006 | 38634 | 11 | end
|
Other subfunctions in this file are not included in this listing.