bug: num2str missing spaces on 3.0.0

Rosen Diankov rdiankov at cs.cmu.edu
Mon Feb 25 19:20:29 CST 2008


num2str is missing a space for some reason

here's some code to repro it (i'm sure there is a simpler case). note
that " -0.7071-2.6713e-08" should be separated into two numbers.

v = [   4.4704e-08  -2.6713e-08  -1.0000e+00  -5.2130e-01
   7.0711e-01  -7.0710e-01   2.6713e-08  -3.6102e-01
  -7.0710e-01  -7.0711e-01   4.4704e-08   8.7632e-01];

num2str(v(:)')

ans = 4.4704e-08    0.70711    -0.7071-2.6713e-08    -0.7071
-0.70711         -1 2.6713e-08 4.4704e-08    -0.5213   -0.36102
0.87632

are there any work-arounds for the time being?

thanks,
rosen diankov,


More information about the Help-octave mailing list