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

    %% Smallest Element in Each Matrix Row
% Create a matrix and compute the smallest element in each row.

% Copyright 2015 The MathWorks, Inc.

A = [1.7 1.2 1.5; 1.3 1.6 1.99]

%%
M = min(A,[],2)