view m-toolbox/classes/+utils/@prog/strs2cells.m @ 0:f0afece42f48
Import.
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Wed, 23 Nov 2011 19:22:13 +0100 (2011-11-23)
parents
children
line source
+ − function cell = strs2cells(varargin)
+ − % STRS2CELLS convert a set of input strings to a cell array.
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % DESCRIPTION: STRS2CELLS convert a set of input strings to a cell array.
+ − %
+ − % CALL: cell = strs2cells(str1, str2, ...)
+ − %
+ − % INPUTS: str1 - string
+ − % str2 - string
+ − % ...
+ − %
+ − % OUTPUTS: cell - cell array of the input strings
+ − %
+ − % VERSION: $Id: strs2cells.m,v 1.1 2008/06/18 13:35:11 hewitson Exp $
+ − %
+ − % HISTORY: 26-01-2007 M Hewitson
+ − % Creation
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − cell = [];
+ − for j=1:nargin
+ − cell = [cell cellstr(varargin{j})];
+ − end
+ −
+ −
+ −
+ − % END