The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: three 3D matrix multiplication
Replies: 4   Last Post: Jan 7, 2013 10:27 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
James Tursa

Posts: 2,326
Registered: 8/5/09
Re: three 3D matrix multiplication
Posted: Jan 7, 2013 2:48 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kcbcq6$g99$>...
> "Jeyakumar " <> wrote in message <kcbcb8$em6$>...
> > 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

Or just:

bsxfun(@times, A*B, C)

James Tursa

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.