numel: Number of Elements

View source: R/size.R

numelR 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))

pracma documentation built on Nov. 10, 2023, 1:14 a.m.