Size of object array
d = size(obj)
[m,n] = size(obj)
[m1,m2,m3,...,mn] = size(obj)
m = size(obj,dim)
| An object or an array of objects. |
| The dimension of |
| The number of rows and columns in |
| The number of rows in |
| The number of columns in |
| The lengths of the first |
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.