dash.assert.blockTypeSize
Throw error if input is not a 3D array of a specified format
Syntax
Description
Checks if an input is a 3D array of the required data type and size. If not, throws an error.
Customize error messages and IDs.
Input Arguments
input
any data type
The input being tested
types
string vector | []
The allowed data types of the input. Use an empty array to allow any type.
siz
vector, positive integers [3] | []
The required size of the 3D array. Use NaN for an element to allow any size along that dimension, or use an empty array to allow any size.
name
string scalar
The name of the input for error messages. Default is “input”.
header
string scalar
Header for thrown error IDs.