dash.assert.sameSize

Throw error if two arrays are not the same size


Syntax



Description

dash.assert.sameSize(A, B)

Throws an error if A and B are arrays with different sizes.

dash.assert.sameSize(A, B, nameA, nameB, header)

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