MATLAB: Sum of each column of matrix

sum of matrix columns

I need to create a vector from a matrix by adding each column elements to form a corresponding vector component. matrix columns are fixed dimension 200. My result should be a row vector of dimension 200. How to do it simply in matlab??

Best Answer

A=rand(300,200);
out=sum(A)