Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

numel

MATLAB numel function


Description

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

Usage

numel(A, varargin)

Arguments

A

object of which to determine the number of elements

varargin

unimplemented

Value

Returns prod(size(A)).

Author(s)

See Also

Examples

numel(2:9)	# 8
numel(magic(4))	# 16

matlab

MATLAB emulation package

v1.0.2
Artistic-2.0
Authors
P. Roebuck
Initial release
2014-06-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.