n = size(M,1) returns the number of
key-value pairs in the input Map object.
size(M,1) is equivalent to length(M) and
to the property M.Count.
szdim = size(M,dim)
returns the length of dimension dim. Since a
Map object stores data as an
n-by-1 set of key-value pairs,
size returns 1 when dim >
1.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.