view m-toolbox/classes/+utils/@xml/num2str.m @ 2:18e956c96a1b database-connection-manager

Add LTPDADatabaseConnectionManager implementation. Matlab code
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Sun, 04 Dec 2011 21:23:09 +0100
parents f0afece42f48
children
line wrap: on
line source

% 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