Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
MTM[numel] - number of elements in an array
Calling Sequence
numel(M)
numel(M, i, j, ...)
Parameters
M
-
array
i, j
array indices
Description
The numel(M) function returns the number of elements in the array, M, or the number of elements in the subreference M[i,j].
numel does not perform bounds checking of the subreference index to assure that the index is valid. Therefore, numel(M,5,5) will still return 1, the size of a subreference of the form M[5,5], even for a 2 x 2 array, M.
The special string, ":" can be used to denote the range of an entire dimension, for example, numel(M,":",1). Or, ":" by itself as in numel(M,":") can be used to denote the whole array, which is equivalent to numel(M).
Examples
See Also
ArrayTools[NumElems], MTM[array_dims], MTM[size], MTM[subsref]
Download Help Document