Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: Matrix Multipication
Replies: 2   Last Post: Feb 6, 2013 2:22 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,071
Registered: 8/5/09
Re: Matrix Multipication
Posted: Feb 6, 2013 1:54 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Hung Lu" wrote in message <kesj54$f1b$1@newscl01ah.mathworks.com>...
> Hello,
>
> Does anyone know how I would multiply a matrix A=[5x1x100] by itself to get a new matrix AA=[5x5x100];
>
> I know I can do this using a for loop, but I want to try not to use a for loop unless I have too.


AA = mtimesx(A,A,'t');

You can find MTIMESX here:

http://www.mathworks.com/matlabcentral/fileexchange/25977-mtimesx-fast-matrix-multiply-with-multi-dimensional-support

James Tursa



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.