David
Farruggio

MathGenie

size

Array size

Syntax and Description

size(A) returns a row vector whose elements contain the length of the corresponding dimension of A. For example, if A is a 3-by-4 matrix, then size(A) returns the vector [3 4]. The length of sz is ndims(A).
size(A,dim) returns the length of dimension dim.

Back to functions