A think on sum(X, 1)
- by Runner
>> X = [0 1 2
3 4 5]
>> sum(X, 1)
ans =
3 5 7
sum(X, 1) should sum along the 1st dimension(row) as per the document says:
S = SUM(X,DIM) sums along the
dimension DIM.
But why does it actually sums along the 2nd dimension(column)?