|
From: | Huub van Niekerk |
Subject: | Re: printing mesh with unequal ranges |
Date: | Fri, 1 Apr 2011 17:46:28 +0200 |
Hello,
Use ().^2 instead of ()^2 for element-by-element squared. ()^2 is a matrix powered 2, but ().^2 is matrix/vector element values powered to 2. Matrix square always requires a square matrix.
FYI, x.-6 equals x-6 since matrix subtraction is always an element-by-element operation.
[Prev in Thread] | Current Thread | [Next in Thread] |