dash.assert.blockTypeSize

Throw error if input is not a 3D array of a specified format


Syntax



Description

dash.assert.blockTypeSize(input, types, siz)

Checks if an input is a 3D array of the required data type and size. If not, throws an error.

dash.assert.blockTypeSize(input, types, siz, name, header)

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”.