From bug-octave-request at che dot utexas dot edu Wed May 25 11:29:55 1994 Subject: Problem with deleting elements of vectors From: "G.Beyerle" To: bug-octave at che dot utexas dot edu Cc: gbeyerle at AWI-Potsdam dot DE Date: Wed, 25 May 94 18:29:28 GMT Hello *, I found the following problem with vectors: ----------------------------------------- octave:1> y=[1 2 3] y = 1 2 3 octave:2> y([1 3]) = []; error: A(matrix) = X: X and matrix must have the same number error: of elements error: evaluating assignment expression near line 2, column 10 ----------------------------------------- whereas ----------------------------------------- octave:3> y=[1 2 3; 1 2 3] y = 1 2 3 1 2 3 octave:4> y(:,[1 3]) = [] y = 2 2 ----------------------------------------- works correct. Octave version : 1.0 System : SunOS 4.1.3_U1 Thanks Georg | Georg Beyerle | | Alfred Wegener Institute of Tel: +49-331-288-2119 | | Polar and Marine Research Fax: +49-331-288-2137 | | POB 600 149 E-Mail: gbeyerle at awi-potsdam dot de| | | D-14401 Potsdam Germany |