www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/TestMatrixRowsAnyExample.m
%% Test Matrix Rows %% % Create a 3-by-3 matrix. A = [0 0 3;0 0 3;0 0 3] %% % Test the rows of |A| for nonzero elements by specifying |dim = 2|. B = any(A,2)