%% Test Matrix Columns
% Create a 3-by-3 matrix.

A = [0 0 3;0 0 3;0 0 3]

%
% Test each column for nonzero elements.

B = any(A)

% Copyright 2012 The MathWorks, Inc.