Section: Inspection Functions
[d1,d2,...,dn] = size(x)
The other format returns the size of x
along a particular
dimension:
d = size(x,n)
where n
is the dimension along which to return the size.
--> a = randn(23,12,5); --> size(a) ans = 23 12 5
Here is an example of the second form of size
.
--> size(a,2) ans = 12