cellstr & strcat matlab inconsistenc

Sergei Steshenko sergstesh at yahoo.com
Fri May 23 03:37:15 CDT 2008


--- Jaroslav Hajek <highegg at gmail.com> wrote:

> > octave:1> strcat ("", "ab")
> > ans = ab
> > octave:2>
> > "
> >
> > - IMO it is the desired result.
> >
> 
> This patch applies to development sources. It seems that changeset
> 7608 (a rewrite of strcat) was not applied to release branch,
> therefore you have the old strcat (now cstrcat).
> Try cellstr ('') instead, it should give you empty cell array (it
> gives {''} in Matlab).
> 

"
Yep:

GNU Octave, version 3.0.1
Copyright (C) 2008 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "i686-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <bug at octave.org> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

octave:1> cellstr ('')
ans = {}(0x0)
octave:2> 
".

Regards,
  Sergei.

Applications From Scratch: http://appsfromscratch.berlios.de/


      


More information about the Bug-octave mailing list