%% Integer Data Type for Input and Output
% Create a 3-by-3 array of 8-bit unsigned integers.

A = uint8([1:3:7;2:3:8;3:3:9])

%
% Find the product of the elements in each column natively in uint8.

B = prod(A,'native')

%
% The result is an array of 8-bit unsigned integers.

class(B)

% Copyright 2012 The MathWorks, Inc.