From bug-octave-request at bevo dot che dot wisc dot edu Tue Dec 9 22:07:45 2003 Subject: Empty string isn't equivalent to empty matrix From: "John W. Eaton" To: Geraint Paul Bevan cc: bug-octave mailing list Date: Tue, 9 Dec 2003 22:06:39 -0600 On 2-Dec-2003, Geraint Paul Bevan wrote: | Bug report for Octave 2.1.52 configured for i386-pc-linux-gnu | | Description: | - ----------- | | ~ Empty string "" no longer works as empty matrix [] in concatenation | with scalar. | | ~ GNU Octave, version 2.1.50 (i386-pc-linux-gnu). | | ~ octave:1> s = [ "" ; 1 ] | ~ s = 1 | | | ~ GNU Octave, version 2.1.52 (i386-pc-linux-gnu). | | ~ octave:1> s = [ "" ; 1 ] | ~ warning: implicit conversion from scalar to string | ~ s =  | | Repeat-By: | - --------- | | ~ octave:1> s = [ "" ; 1 ] If you want compatibility with Matlab, then I think this is not a bug. jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------