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: Error using ==> mpower........ Matrix must be square.
Replies: 5   Last Post: Jan 10, 2013 2:34 AM

Advanced Search

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

Posts: 5,855
Registered: 12/7/04
Re: Error using ==> mpower........ Matrix must be square.
Posted: Jan 10, 2013 1:40 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Mark L. J." <abejohno@gmail.com> wrote in message <62702ec8-e9a0-425a-84a8-17b3355b56c8@googlegroups.com>...
> ??? Error using ==> mtimes
> Inner matrix dimensions must agree.
> Error in ==> triscastdmeshgrid10012013b at 6
> F=1.10471*X.^2*A+0.04811*B*(14 + A);

- - - - - - - - -
It's almost the same problem. You can't do matrix multiplication of two 100 x 1 vectors and that is what "*" without the dot calls for. Use ".*" instead for multiplying element by element.

Roger Stafford



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.