External Interfaces Reference Previous page   Next Page
size (serial)

Size of serial port object array

Syntax

Arguments

obj
A serial port object or an array of serial port objects.
dim
The dimension of obj.
d
The number of rows and columns in obj.
m
The number of rows in obj, or the length of the dimension specified by dim.
n
The number of columns in obj.
m1,m2,...,mn
The length of the first N dimensions of obj.

Description

d = size(obj) returns the two-element row vector d containing the number of rows and columns in obj.

[m,n] = size(obj) returns the number of rows and columns in separate output variables.

[m1,m2,m3,...,mn] = size(obj) returns the length of the first n dimensions of obj.

m = size(obj,dim) returns the length of the dimension specified by the scalar dim. For example, size(obj,1) returns the number of rows.

See Also

Functions

length


Previous page  set (serial) stopasync Next page

© 1994-2005 The MathWorks, Inc.