[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is different ^ and .^?
From: |
Javier Arantegui Jimenez |
Subject: |
Re: Why is different ^ and .^? |
Date: |
Tue, 24 May 2005 00:17:33 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.3a-6.FC2 |
Mike Miller said:
> a^2 means a*a
> a.^2 means "square every element of a"
>
> a^2 therefore requires that 'a' be a square matrix or scalar.
> a.^2 does not require that 'a' have any particular dimensions
OK. I understand it. But, could Octave be smart enough to distinguish
between those cases? I think that other programs, like Euler, don't need
to do this distinction.
Javier
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------