%% Test Matrix of Zeros
% Create a 5-by-5 matrix of zeros.

Z = zeros(5);

%
% Test Z to see if it is upper triangular.

istriu(Z)

% The result is logical 1 (true) because an upper triangular matrix can have any number of zeros on the main diagonal.
% Copyright 2012 The MathWorks, Inc.