------------------------------------------------------------------------------- Always sums by column even if x is a single row. ------------------------------------------------------------------------------- Form: z = SumC( x ) ------------------------------------------------------------------------------- ------ Inputs ------ x (:,:) Vectors ------- Outputs ------- z (1,:) Column sum -------------------------------------------------------------------------------