help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printing mesh with unequal ranges


From: Huub van Niekerk
Subject: Re: printing mesh with unequal ranges
Date: Fri, 1 Apr 2011 17:46:28 +0200

On Fri, Apr 1, 2011 at 4:20 PM, Pertti Pääkkönen <address@hidden> wrote:

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.


Thank you. The combination of your and Ben's comments did the trick. Working great now.

Regards,

Huub

reply via email to

[Prev in Thread] Current Thread [Next in Thread]