int2str2

PURPOSE ^

Convert integer to string of given length; improved version of int2str.

SYNOPSIS ^

function nstr = int2str2( n, ndigits )

DESCRIPTION ^

 Convert integer to string of given length; improved version of int2str.  

 Pads string with zeros on the left.  If input n is an array, output is a cell array of
 strings of the same dimension as n.
 
 INPUTS
   n           - integer to convert to string
   ndigits     - minimum number of digits to use


 OUTPUTS
   nstr    - string representation of n (or cell array of strings in n is an array)

 EXAMPLE
   s = int2str2( 3, 3 )

 DATESTAMP
   29-Sep-2005  2:00pm

 See also INT2STR

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-May-2006 23:48:50 by m2html © 2003