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: MTIMESX when Inner matrix dimensions are not agree.
Replies: 11   Last Post: Apr 18, 2013 2:19 PM

Advanced Search

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

Posts: 85
Registered: 4/13/13
Re: MTIMESX when Inner matrix dimensions are not agree.
Posted: Apr 18, 2013 10:28 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> In addition, think about the
> you from six months from now. Which of these two lines of code will take
> that you less time to understand?
>
> c =a.*b;
>
> c = permute(mtimesx(permute(a,[2 3 1]),permute(b,[2 3 1])),[3 1 2]);
>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

============================
I know that .* is simpler and faster.I measured three method and .* is very faster than two other method.my question was wrong.
in fact I want to know that is there any method better than .* operator in 3d?
ghasem



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.