"y \= scalar" fails

Jaroslav Hajek highegg at gmail.com
Mon Mar 3 03:46:15 CST 2008


this seems 100% correct. y \= c means y = y \ c = inv(y) * c, but
size(y,2) != size(c,1).
Matlab gripes as well here.

On Mon, Mar 3, 2008 at 10:26 AM, Rolf Fabian <Rolf.Fabian at gmx.de> wrote:
>
>
>  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.
>
>  _______________________________________________
>  Bug-octave mailing list
>  Bug-octave at octave.org
>  https://www.cae.wisc.edu/mailman/listinfo/bug-octave
>



-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


More information about the Bug-octave mailing list