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

    %% Largest Element of Each Matrix Row  

%% 
% Create a fixed-point matrix. 
a = fi(magic(4),1,16)  

%% 
% Find the largest element of each row by finding the maximum values along
% the second dimension. 
x = max(a,[],2) 

%%
% The output vector, |x|, is a column vector that contains the largest element
% of each row.