www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ModeofMatrixColumnsExample.m
%% Mode of Matrix Columns %% % Define a 3-by-4 matrix. A = [3 3 1 4; 0 0 1 1; 0 1 2 4] %% % Find the most frequent value of each column. M = mode(A)