Mercurial > hg > ltpda
diff m-toolbox/classes/+utils/@xml/num2str.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/+utils/@xml/num2str.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,16 @@ +% NUM2STR uses sprintf to convert a data vector to a string with a fixed precision. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% DESCRIPTION: uses sprintf to convert a data vector to a string with a +% fixed precision. +% +% CALL: str = num2str(number); +% +% VERSION: $Id: num2str.m,v 1.2 2010/09/28 17:47:15 ingo Exp $ +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +function str = num2str(number) + str = sprintf('%.17g ', number); +end +