From owner-bug-octave at bevo dot che dot wisc dot edu Wed Dec 4 17:19:43 1996 Subject: octave 1.93 bug: incorrect string(a:b)=[] From: Joao Cardoso To: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 4 Dec 96 23:17:09 GMT Hi, After assigning part of a string to the empty array [], the original string changes representation, and a further setstr() is needed to recover. octave:1> a="pois sim" a = pois sim octave:2> a(1:4)=[] a = 32 115 105 109 octave:3> a=setstr(a) ans = sim also, the empty string "" is not equivalent to the empty array []. Should it be? I thing so, but... octave:9> a(1:2)="" error: A(I) = X: X must be a scalar or a vector with same length as I error: evaluating assignment expression near line 9, column 7 Thanks, Joao -- Joao Cardoso, INESC | e-mail: jcardoso at inescn dot pt R. Jose Falcao 110 | tel: + 351 2 2094345 4000 Porto, Portugal | fax: + 351 2 2008487