Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: three 3D matrix multiplication

$
0
0
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kcbcq6$g99$1@newscl01ah.mathworks.com>...
> "Jeyakumar " <jeymagnetron@gmail.com> wrote in message <kcbcb8$em6$1@newscl01ah.mathworks.com>...
> > hi ,
> > my problem is that i have 3 3D matrices A(4,1,1), B(1,4,1) and C(1,1,4) respectively. i wanna perform matrix multiplication i.e A*B*C such that the resulting matrix shud be of dimension
> > 4-by-4-by-4 i.e 4x4x4 cube.
>
> This is NOT matrix-multiplication. This operation is called tensor product.
>
> Try
> bsxfun(@times, bsxfun(@times, A, B), C)
>
> Bruno

thanks a lot sir. it worked like charm.:-)

Viewing all articles
Browse latest Browse all 19628

Trending Articles