Home > freetb4matlab > general > int2str.m

int2str

PURPOSE ^

% Convert an integer (or array of integers) to a string (or a character

SYNOPSIS ^

function retval = int2str (x)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} int2str (@var{n})
% Convert an integer (or array of integers) to a string (or a character
% array).
%
% @example
% @group
%
% int2str (123)
%      @result{} '123'
%
% s = int2str ([1, 2, 3; 4, 5, 6])
%      @result{} s = 
%         1  2  3
%         4  5  6
% 
% whos s
%      @result{} s = 
%       Attr Name        Size                     Bytes  Class
%       ==== ====        ====                     =====  ===== 
%            s           2x7                         14  char
% @end group
% @end example
%
% This function is not very flexible.  For better control over the
% results, use @code{sprintf} (@pxref{Formatted Output}). 
% @seealso{sprintf, num2str, mat2str}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003