stripdims
Remove dlarray data format
Description
The stripdims function removes the format from a dlarray object.
Examples
Input Arguments
Output Arguments
Tips
Use
stripdimsto ensure that adlarraybehaves like a numeric array of the same size, without any special behavior due to dimension labels.ndims(X)can decrease after astripdimscall because the function removes trailing singleton dimensions.X = dlarray(ones(3,2), 'SCB'); ndims(X)ans = 3X = stripdims(X); ndims(X)
ans = 2
Extended Capabilities
Version History
Introduced in R2019b