bug in char, str2mat and strvcat behaviour?

Søren Hauberg soren at hauberg.org
Fri Nov 7 02:07:34 CST 2008


fre, 07 11 2008 kl. 00:09 +0100, skrev Thorsten Meyer:
> Could someone with access to matlab please try, what really happens for the above
> examples?

With Matlab 7.6.0.324 (R2008a) I get

>> str2mat ('a', 'b', '', 'c')

ans =

a
b
 
c

>> char ('a', 'b', '', 'c')

ans =

a
b
 
c

>> strvcat ('a', 'b', '', 'c')

ans =

a
b
c

So, the only difference seems to be in the 'char' function.

Søren



More information about the Bug-octave mailing list