From: Oleg Komarov on
"Matt Fig" <spamanon(a)yahoo.com> wrote in message <i0gs0s$al3$1(a)fred.mathworks.com>...
>
> C2 = reshape(bsxfun(@times,B,reshape(A,3,1,3)),3,[])

Best one!

Oleg