help-octave
[Top][All Lists]
Advanced

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

operator /: nonconformant arguments


From: Miquel Cabanas
Subject: operator /: nonconformant arguments
Date: Thu, 29 May 2003 14:17:42 +0200
User-agent: Mutt/1.3.28i

hi all,

there's probably a good reason for this behaviour (even Matlab
compatibility issues) but why is "2/t" not taken as equivalent
to "2./t"?  indeed when the equivalence is granted for +, - and
*

> t = [1:5]

> 2/t
  error: operator /: nonconformant arguments (op1 is 1x1, op2 is 1x5)
  error: evaluating binary operator `/' ...

> 2./t

ns =

  2.00000  1.00000  0.66667  0.50000  0.40000

now try "2*t" and "2.*t", and "2+t" and ...


I am running Octave 2.1.35 as comes with Debian-stable.

Miquel

-- 
Miquel E Cabanas ------------------------------------------------------
SeRMN, Universitat Autonoma de Barcelona (address@hidden)
------------------------------------------o-oo--ooo---ooo--oo-o--------



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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