dash.assert.sameSize
Throw error if two arrays are not the same size
Syntax
Description
Throws an error if A and B are arrays with different sizes.
Customize error messages and headers.
Input Arguments
A
array, any data type
The first array
B
array, any data type
The second array
nameA
string scalar
A name for A in error messages
nameB
string scalar
A name of B in error messages
header
string scalar
Header for thrown error IDs