Mercurial > hg > octave-lyh
diff scripts/general/num2str.m @ 5939:2e86e3601e0f
[project @ 2006-08-18 17:40:41 by jwe]
author | jwe |
---|---|
date | Fri, 18 Aug 2006 17:40:41 +0000 |
parents | 2618a0750ae6 |
children | 009fa69b6182 |
line wrap: on
line diff
--- a/scripts/general/num2str.m +++ b/scripts/general/num2str.m @@ -18,7 +18,7 @@ ## 02110-1301, USA. ## -*- texinfo -*- -## @deftypefn {Function File} {} int2str (@var{n}) +## @deftypefn {Function File} {} num2str (@var{n}) ## @deftypefnx {Function File} {} num2str (@var{x}, @var{precision}) ## @deftypefnx {Function File} {} num2str (@var{x}, @var{format}) ## Convert a number to a string. These functions are not very flexible, @@ -79,7 +79,7 @@ idx{2} = perm; x = horzcat (real(x), imag(x)); x = x(idx{:}); - + fmt = strcat (deblank (repmat (fmt, 1, nc)), "\n"); tmp = sprintf (fmt, permute (x, [2, 1, 3:nd]));