20-sim webhelp > Language Reference > Functions > Matrix > msum


msum

Navigation:  Language Reference > Functions > Matrix >

msum

Previous pageReturn to chapter overviewNext page

Syntax

y = msum(A);

Description

Returns the sum of the matrix elements of A.

Examples

A = [1,2;3,4;5,6];

y = msum(A);

Limitations

y must be a scalar.