Length of serial port object array
length(obj)
length(obj) returns the length of the serial port object, obj. It is equivalent to the command max(size(obj)).
obj
max(size(obj))
size