Dimension labels of dlarray
dlarray
d = dims(dlX)
example
d = dims(dlX) returns the labels of dlX as a character array.
d
dlX
collapse all
Obtain the dimension labels of a dlarray.
dlX = dlarray(randn(3,4),'TS'); d = dims(dlX)
d = 'ST'
Obtain the labels of an unlabeled dlarray.
y = stripdims(dlX); d = dims(y)
d = 0x0 empty char array
Input dlarray, specified as a dlarray object.
Example: dlX = dlarray(randn(3,4),'ST')
dlX = dlarray(randn(3,4),'ST')
Dimension labels, returned as a character vector. If the input dlX is unlabeled, d is empty.
dlarray | finddim | stripdims
finddim
stripdims
You have a modified version of this example. Do you want to open this example with your edits?