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: product 3D matrix with a vector
Replies: 7   Last Post: Jan 3, 2012 2:55 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Paolo Tarpanelli

Posts: 49
Registered: 1/9/06
product 3D matrix with a vector
Posted: Jan 2, 2012 8:12 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I have 1 3D matrix like this
and 1 vector like this

what I am trying to do is the sum of the products of each 2D matrix A(n,m) that I can extract from the 3D matrix A(n,m,k) with the vector V(m,1).

Is it possible to do it in one single command using <sum> ?
I mean without the for..end loop.

Thanks again

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.