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
ArrayTools[Size] - return the size of an Array in each dimension
Calling Sequence
Size(M)
Size(M, n)
Parameters
M
-
Array
n
positive integer dimension
Description
The Size(M) function returns an array with the number of rows as the first entry, and the number of columns as the second entry.
When M is a row-vector, the result of Size(M) will have a 1 in the entry specifying the number of rows. Similarly when M is a column-vector, there will be a 1 in the second entry of the result.
When M has more than 2 dimensions, the number of entries in M will correspond to the number of dimensions of M.
When n is given, Size(M,n) will return only the number corresponding to that dimension. Size(M,1) will give the number of rows and Size(M,2) will give the number of columns.
When n is larger than the number of dimensions of M, 1 will be returned.
When there are multiple return values as directed by a sequence of names on the left side of :=, each variable will match with the corresponding dimension size. If there are fewer variables than dimensions, the last variable will be assigned the product of all remaining dimension sizes.
This function is part of the ArrayTools package, and so it can be used in the short form Size(..) only after executing the command with(ArrayTools). However, it can always be accessed through the long form ArrayTools[Size](..).
Examples
See Also
ArrayTools, ArrayTools[NumElems], rtable_dims, rtable_num_dims
Download Help Document