www.gusucode.com > fixedpoint 案例源码程序 matlab代码 > fixedpoint/SumofElementsinEachColumnTwoExample.m
%% Sum of Elements in Each Column % Create a |fi| array, and compute the sum of the elements in each column. %% A=fi([1 2 8;3 7 0;1 2 2]) %% S=sum(A) %% % MATLAB(R) returns a row vector with the sums of each column of |A|. The % |WordLength| of |S| has increased by two bits because |ceil(log2(size(A,1)))=2|. % The |FractionLength| remains the same because the default setting of |SumMode| % is |FullPrecision|. %% %