# HG changeset patch # User jwe # Date 1155922841 0 # Node ID 2e86e3601e0ffdf9feb8b1898284a72f5a7ccc27 # Parent 5a3a716c257d2ced924ba5eea7a29676681d71bf [project @ 2006-08-18 17:40:41 by jwe] diff -r 5a3a716c257d -r 2e86e3601e0f scripts/general/num2str.m --- a/scripts/general/num2str.m Fri Aug 18 06:06:53 2006 +0000 +++ b/scripts/general/num2str.m Fri Aug 18 17:40:41 2006 +0000 @@ -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]));