Learn R Programming

matlab (version 1.0.4.1)

numel: MATLAB numel function

Description

Provides number of elements in array A or subscripted array expression.

Usage

numel(A, varargin)

Value

Returns prod(size(A)).

Arguments

A

object of which to determine the number of elements

varargin

unimplemented

Author

P. Roebuck proebuck1701@gmail.com

See Also

prod, size

Examples

Run this code
numel(2:9)	# 8
numel(magic(4))	# 16

Run the code above in your browser using DataLab