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[sum] - add elements in a matrix row or column
Calling Sequence
sum(M, dimension)
Parameters
M
-
matrix, vector, or array
dimension
1 or 2
Description
The sum(M) command computes the sum of the elements in the first non-singleton dimension of the given array.
The sum(M,dimension) command computes the sum of the elements in the given singleton dimension of the given array.
If M is 1-D, sum(M) computes the sum of the elements in the given vector.
If M is 2-D, sum(M) or sum(M, 1) creates a row vector of column sums of the matrix. The sum(M, 2) command creates a column vector of row sums of the matrix.
When M has n dimensions, sum will return an array with n-1 dimensions. Subarrays will be added together along the specified dimension (or first non-singleton dimension if unspecified).
Examples
See Also
MTM[prod]
Download Help Document