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