Date: Jan 10, 2013 1:14 AM
Author: Roger Stafford
Subject: Re: Error using ==> mpower........ Matrix must be square.
"Mark L. J." <firstname.lastname@example.org> wrote in message <email@example.com>...
> ??? Error using ==> mpower
> Matrix must be square.
> Error in ==> triscastdmeshgrid10012013b at 6
- - - - - - - - - -
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.