ans =
1 1
numel(vs)
ans =
1
size([vs;vs])
ans =
2 1
numel([vs;vs])
ans =
2
vs is a scalar object. The Value property is an array of doubles:
size(vs.Value)
ans =
1 10
Apply indexing expressions to the object property:
vssub = vs.Value(7:end);
size(vssub)
ans =
1 4
The vs.Value property is an array of class double:
class(vs.Value)
ans =
double
12 How to Build on Other Classes