%% Generate Square Matrix of Logical Ones
% Use true to generate a 3-by-3 square matrix of logical ones.

A = true(3)
class(A)

% The result is of class logical.
% Copyright 2012 The MathWorks, Inc.