Date: Feb 3, 2013 4:19 AM
Author: Bruno Luong
Subject: Re: 3D trace

"Hung Lu" wrote in message <kel887$4mv$1@newscl01ah.mathworks.com>...
> Hello,
>
> Does anyone know how to perform a trace of a [5x5x100] matrix to get a [1x100] vector?
>

Supposed A is 5x5x100

B = reshape(A,25,[]);
sum(B(1:6:end,:))

% Bruno