numel {pracma}R Documentation

Number of Elements

Description

Number of elements in a vector, matrix, or array.

Usage

numel(x)

Arguments

x

a vector, matrix, array or list

Value

the number of elements of a.

See Also

size

Examples

numel(c(1:12))
numel(matrix(1:12, 3, 4))

[Package pracma version 2.4.4 Index]