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