tf = keyMatch(A, B)
| Parameter | Description |
|---|---|
| A | array |
| B | array |
| Parameter | Description |
|---|---|
| tf | logical: true or false. |
tf = keyMatch(A, B) returns true if arrays A and B have identical classes, properties, dimensions, and values, and returns false otherwise.
For custom classes, overloading keyMatch may be necessary to ensure accurate equivalence.
A = {'a', 'b', 1};
B = {1, 'a', 'b'};
C = A;
D = B;
keyMatch(A, B)
keyMatch(A, C)
keyMatch(B, D)
| Version | Description |
|---|---|
| 1.5.0 | initial version |