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: 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,929
Registered: 12/7/04
Re: Error using ==> mpower........ Matrix must be square.
Posted: Jan 10, 2013 1:14 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Mark L. J." <> wrote in message <>...
> ??? Error using ==> mpower
> Matrix must be square.
> Error in ==> triscastdmeshgrid10012013b at 6
> F=1.10471*X^2*A+0.04811*B*(14.0+A);

- - - - - - - - - -
The error message is telling you what is wrong. You wrote X^2 where X is not a square matrix. If you were to write X*X you would also get an error message. If you want to simply square each element of X you should write X.^2.

Roger Stafford

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.