www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SmallestElementIndicesExample.m
%% Smallest Element Indices % Create a matrix |A| and compute the smallest elements in each column as well % as the row indices of |A| in which they appear. % Copyright 2015 The MathWorks, Inc. A = [1 9 -2; 8 4 -5] %% [M,I] = min(A)