numel
Number of elements.
📝Syntax
nbel = numel(M)
📥Input Arguments
Parameter Description
M a variable
📤Output Arguments
Parameter Description
nbel the number of elements.
📄Description

Return the number of elements in the object M.

💡Examples
numel(ones(3, 0))
numel(ones(3,4))
numel(ones(3,4,5))
🔗See Also
sizelength
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub