Dataplot Vol 2 Vol 1

# MATRIX SUM

Name:
MATRIX SUM (LET)
Type:
Let Subcommand
Purpose:
Compute the sum of all elements of a matrix.
Syntax:
LET <par> = MATRIX SUM <mat> <SUBSET/EXCEPT/FOR qualification>
where <mat> is a matrix for which the sum is to be computed;
<par> is a parameter where the resulting sum is saved;
and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
LET A = MATRIX SUM M
LET A = MATRIX SUM M SUBSET TAG = 1 TO 2
Note:
Matrices can be created with the READ MATRIX, CREATE MATRIX, and MATRIX DEFINITION commands. Enter HELP MATRIX DEFINITION, HELP READ MATRIX, and HELP CREATE MATRIX for details.
Note:
Row and column statistics for a matrix can be computed using the MATRIX ROW STATISTIC and MATRIX COLUMN STATISTIC commands. Enter HELP MATRIX ROW STATISTIC and HELP MATRIX COLUMN STATISTIC for details.

Statistics for equi-sized sub-matrices of the original matrix can be computed with the MATRIX PARTITION STATISTIC command. Enter HELP MATRIX PARTITION STATISTIC for details.

Other statistics for the entire matrix can be computed with the command MATRIX GRAND STATISTIC. Enter HELP GRAND STATISTIC for details.

Default:
None
Synonyms:
MATRIX GRAND SUM is a synonym for MATRIX SUM.
Related Commands:
 MATRIX COLUMN STATISTIC = Compute column statistics for a matrix. MATRIX ROW STATISTIC = Compute row statistics for a matrix. MATRIX PARTITION STATISTIC = Compute statistics for equi-sized sub-matrices of a matrix. MATRIX GRAND STATISTIC = Compute statistics for all elements of a matrix. MATRIX MEAN = Compute the mean for all elements of a matrix. MATRIX COLUMN DIMENSION = Dimension maximum number of columns for Dataplot matrices.
Reference:
"Applied Multivariate Statistical Analysis", Third Edition, Johnson and Wichern, Prentice-Hall, 1992.
Applications:
Multivariate Analysis
Implementation Date:
2005/6
Program:
```