R/numel.R

Defines functions numel

Documented in numel

###
### $Id: numel.R 29 2022-05-30 23:02:22Z proebuck $
###
### Provides number of elements.
###


##-----------------------------------------------------------------------------
numel <- function(A, varargin) {
    if (!missing(varargin)) {
        stop("not implemented")         # need example
    }

    prod(matlab::size(A))
}

Try the matlab package in your browser

Any scripts or data that you put into this service are public.

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