www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/TestMatrixofZerosExample.m

    %% Test Matrix of Zeros  

%% 
% Create a 5-by-5 matrix of zeros. 
Z = zeros(5);  

%% 
% Test |Z| to see if it is lower triangular. 
istril(Z) 

%%
% The result is logical |1| (|true|) because a lower triangular matrix can
% have any number of zeros on its main diagonal.