width

width(X) returns the number of columns in X.

Examples

> X = rand(3,2)

	[X:3x2 double]

> width(X)#

	2

Resources

See also

height | numel | size