


LTPDA_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 = ltpda_num2str(number);
VERSION: $Id: ltpda_num2str.html,v 1.9 2008/03/26 18:02:10 hewitson Exp $
HISTORY: 18-10-2007 Hewitson
Creation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0001 function str = ltpda_num2str(number) 0002 % LTPDA_NUM2STR uses sprintf to convert a data vector to a string with a fixed precision. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: uses sprintf to convert a data vector to a string with a fixed precision. 0007 % 0008 % CALL: str = ltpda_num2str(number); 0009 % 0010 % VERSION: $Id: ltpda_num2str.html,v 1.9 2008/03/26 18:02:10 hewitson Exp $ 0011 % 0012 % HISTORY: 18-10-2007 Hewitson 0013 % Creation 0014 % 0015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0016 0017 0018 str = sprintf('%.17g ', number); 0019