Mercurial > hg > octave-avbm
changeset 5939:2e86e3601e0f
[project @ 2006-08-18 17:40:41 by jwe]
author | jwe |
---|---|
date | Fri, 18 Aug 2006 17:40:41 +0000 |
parents | 5a3a716c257d |
children | 0dd8428bb260 |
files | scripts/general/num2str.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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]));