view m-toolbox/classes/+utils/@prog/csv.m @ 13:e05504b18072
database-connection-manager
Move more functions to utils.repository
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − % CSV makes comma separated list of numbers
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % DESCRIPTION: CSV make comma separated list of numbers
+ − %
+ − % CALL: s = csv(x)
+ − %
+ − % INPUTS: x - the list of numbers to convert
+ − %
+ − % OUTPUTS: s - a makes comma separated list string
+ − %
+ − % EXAMPLE: s = utils.prog.csv([1:10])
+ − %
+ − % VERSION: $Id: csv.m,v 1.2 2010/05/17 08:32:06 nicolodi Exp $
+ − %
+ − % HISTORY: 14-05-2010 M Hueller
+ − % Creation
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function s = csv(x)
+ − s = sprintf('%g,', x);
+ − s = s(1:end-1);
+ − end