Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Error using ==> mpower........ Matrix must be square.
Date: Thu, 10 Jan 2013 06:14:12 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <kclm7k$ois$1@newscl01ah.mathworks.com>
References: <ba35e7b1-e79a-47b4-8dd2-f902982f812d@googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1357798452 25180 172.30.248.38 (10 Jan 2013 06:14:12 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 10 Jan 2013 06:14:12 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:786300

"Mark L. J." <abejohno@gmail.com> wrote in message <ba35e7b1-e79a-47b4-8dd2-f902982f812d@googlegroups.com>...
> ??? 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