bug in char, str2mat and strvcat behaviour?
Ben Abbott
bpabbott at mac.com
Fri Nov 7 06:20:47 CST 2008
On Nov 7, 2008, at 7:06 AM, David Bateman wrote:
> To fix the behavior of char in Octave the convert_to_str method of
> the octave_value class needs to be changed. However, that will have
> other implications, particularly for mixed type operation. Like what
> does matlab return for
>
> char(50,50,[],50)
> char([50;50;[],50])
> [50;"2";"";"2"]
Running Matlab 2008b
>> char(50,50,[],50)
ans =
2
2
2
char([50;50;[],50])
ans =
2
2
2
[50;'2';'';'2']
ans =
2
2
2
Ben
More information about the Bug-octave
mailing list