MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > Adding rows in a Matrix 

I am novel Matlab user. I have a 2x7 matrix and all I am interested in is to add the elements of each row and get a sum at the end, eg if; 
"John" wrote in message <ihrjd8$ja9$1@fred.mathworks.com>... 
> I am novel Matlab user. I have a 2x7 matrix and all I 
> WHY NOT USE SUM(A,2)? 
Torsten Hennig <Torsten.Hennig@umsicht.fhg.de> wrote in message 
"John" wrote in message <ihrn3b$fjl$1@fred.mathworks.com>... 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.