From bug-octave-request at che dot utexas dot edu Sun May 22 01:37:26 1994 Subject: a(:,[]) = [] From: Ken Neighbors To: bug-octave at che dot utexas dot edu (Octave Bug) Date: Sat, 21 May 1994 23:37:22 -0700 (PDT) LAST ONE FOR TODAY! :-) I'm running Octave 1.0 under Linux 0.99.15 #1 Thu Feb 3 19:55:32 CST 1994 from Slackware 1.1.2 on my 486DX33. (In my ongoing quest to get the MATLAB controls toolbox to run under Octave) Using an empty matrix as an index apparently isn't allowed in octave, but perhaps it should be (especially for compatability with MATLAB). This error causes problems with parallel.m and ssdelete.m. Ken Neighbors wkn at leland dot stanford dot edu *************** beginning of log ***************** Octave, version 1.0. Copyright (C) 1992, 1993, 1994 John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type `warranty'. octave:1> a = [1 2; 3 4]; octave:2> a(:,[]) = [] error: second matrix index is an empty matrix error: evaluating assignment expression near line 2, column 9 octave:3> *************** end of log ***************** My octaverc is: *************** beginning of octaverc ***************** # octave's system startup file # set load path LOADPATH=['.:/usr/local/lib/octave/hacks:/usr/local/lib/octave/1.0' ... ':/usr/local/lib/matlab/hacks' ... ':/usr/local/lib/matlab/controls:/usr/local/lib/matlab/matlab']; # make octave matlab compatible: do_fortran_indexing = 'true'; treat_neg_dim_as_zero = 'true'; empty_list_elements_ok = 'true'; *************** end of octaverc *****************