numel: MATLAB numel function

View source: R/numel.R

numelR Documentation

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)

P. Roebuck proebuck1701@gmail.com

See Also

prod, size

Examples

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

matlab documentation built on July 1, 2024, 5:07 p.m.