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