soma no script do MATLAB

Syntax: 
S = sum(A)
S = sum(A,'all')
S = sum(A,dim)
S = sum(A,vecdim)
S = sum(___,outtype)
S = sum(___,nanflag)

A = 1:10;
S = sum(A)
output: S = 55
Tiny Coders