%% Product of Logical Input
% Create an array of logical values.

A = [true false; true true]

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

B = prod(A)

%
% The output has type double.

class(B)

% Copyright 2012 The MathWorks, Inc.