Date: Feb 6, 2013 1:54 AM
Author: James Tursa
Subject: Re: Matrix Multipication

"Hung Lu" wrote in message <kesj54$f1b$1@newscl01ah.mathworks.com>...
> Hello,
>
> Does anyone know how I would multiply a matrix A=[5x1x100] by itself to get a new matrix AA=[5x5x100];
>
> I know I can do this using a for loop, but I want to try not to use a for loop unless I have too.


AA = mtimesx(A,A,'t');

You can find MTIMESX here:

http://www.mathworks.com/matlabcentral/fileexchange/25977-mtimesx-fast-matrix-multiply-with-multi-dimensional-support

James Tursa