A matrix is 2-dimensional and has no "third dimension". Are you trying
to sum along the 3rd row? Along the 3rd column?
Or are you talking about a higher-dimensional array?
CuppoJava wrote:
> Hi,
> I just started using Mathematica after a year of experience with
> another system, and I have a question regarding how to handle matrices.
>
> What is the equivalent code for doing
> sum(A,3) in mathematica?
> This sums all the elements A along the third dimension.
>
> I'm having a hard time finding it in the documentation.
>
> Thanks a lot for your help
> -Patrick
>
--
Murray Eisenberg murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305