www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SumOfMatrixColumnsExample.m
%% Sum of Matrix Columns % Create a matrix and compute the sum of the elements in each column. % Copyright 2015 The MathWorks, Inc. A = [1 3 2; 4 2 5; 6 1 4] %% S = sum(A)