Home > m > helper > ltpda_num2str.m

ltpda_num2str

PURPOSE ^

LTPDA_NUM2STR uses sprintf to convert a data vector to a string with a fixed precision.

SYNOPSIS ^

function str = ltpda_num2str(number)

DESCRIPTION ^

 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.m,v 1.2 2007/10/26 14:39:54 hewitson Exp $

 HISTORY:     18-10-2007 Hewitson
                 Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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.m,v 1.2 2007/10/26 14:39:54 hewitson Exp $
0011 %
0012 % HISTORY:     18-10-2007 Hewitson
0013 %                 Creation
0014 %
0015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0016 
0017 
0018 str = sprintf('%.17g ', number);
0019

Generated on Mon 31-Mar-2008 13:54:54 by m2html © 2003