matlab::data::ArrayDimensions - Type specifying array dimensions - MATLAB (original) (raw)

Main Content

Type specifying array dimensions

Description

Use the ArrayDimensions type to specify the size of an array.ArrayDimensions is specified as:

using ArrayDimensions = std::vector;

Free Function

getNumElements

inline size_t getNumElements(const ArrayDimensions& dims)

Description

Determine the number of elements based on the ArrayDimensions.

Parameters

const ArrayDimensions& dims Array dimensions.

Returns

inline size_t Number of elements.

Version History

Introduced in R2017b

See Also