underlyingType
Description
typename = underlyingType(
returns the name
of the underlying MATLAB® data type that determines how the array X
)X
behaves.
typename
is returned as a character vector.
The class
function is useful to determine the class of a variable.
For most classes, underlyingType(X)
and class(X)
return the same answer. However, some classes in MATLAB can contain underlying data that has a different type compared to what
class
returns. Example classes include gpuArray
(Parallel Computing Toolbox), dlarray
(Deep Learning Toolbox), and
distributed
(Parallel Computing Toolbox). The behavior of these classes
is determined by the type of the underlying data they contain. For example, a
distributed
array containing double
values behaves
like a double
array.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2020b