"y \= scalar" fails

Rolf Fabian Rolf.Fabian at gmx.de
Mon Mar 3 03:26:10 CST 2008



octave-3.0.0.exe:1> version,computer
ans = 3.0.0
i686-pc-msdosmsvc

octave-3.0.0.exe:2> x=[1,2;3,4]; c = 2; A=[3,2;1,5];

octave-3.0.0.exe:3> y=x; y \= c     # FAILS without leading dot
error: operator \: nonconformant arguments (op1 is 2x2, op2 is 1x1)
error: assignment failed, or no method for `matrix \= scalar'
error: evaluating assignment expression near line 3, column 8

octave-3.0.0.exe:3> y=x; y \= A      # matrix RHS : OK without dot
y =
  -5.00000   1.00000
   4.00000   0.50000

octave-3.0.0.exe:4> y=x; y .\= c     # scalar RHS: OK with dot
y =
   2.00000   1.00000
   0.66667   0.50000


-----
Rolf Fabian
<r dot fabian at jacobs-university dot de>

-- 
View this message in context: http://www.nabble.com/%22y-%5C%3D-scalar%22-fails-tp15799910p15799910.html
Sent from the Octave - Bugs mailing list archive at Nabble.com.



More information about the Bug-octave mailing list