%% Sum of 32-bit Integers
% Create a vector of 32-bit integers and compute the int32 sum of its elements by specifying the output type as native.

A = int32(1:10);
S = sum(A,'native')

% Copyright 2012 The MathWorks, Inc.