Date: Feb 3, 2013 4:33 AM
Author: Bruno Luong
Subject: Re: Matrix Multipication

You can also do this:

ipermute(reshape(reshape(permute(A,[1 3 2]),[500 5])*B,[5 100 5]),[1 3 2])

% Bruno