title: Sum each row and column individually and output it in Matlab?
body: <p>Say I have a matrix with N number of columns of rows I don't know how many and I want to sum every row and output the sum of each row and the same with columns. thanks in advance. How would I write a loop for this in Matlab?</p>
  
  <p>Thanks in advance </p>