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

    %% Largest Element in a Vector  

%% 
% Create a fixed-point vector, and return the maximum value from the vector. 
a = fi([1,5,4,9,2],1,16);
x = max(a)