Mercurial > hg > ltpda
comparison 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 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 function cell = strs2cells(varargin) | |
2 % STRS2CELLS convert a set of input strings to a cell array. | |
3 % | |
4 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
5 % | |
6 % DESCRIPTION: STRS2CELLS convert a set of input strings to a cell array. | |
7 % | |
8 % CALL: cell = strs2cells(str1, str2, ...) | |
9 % | |
10 % INPUTS: str1 - string | |
11 % str2 - string | |
12 % ... | |
13 % | |
14 % OUTPUTS: cell - cell array of the input strings | |
15 % | |
16 % VERSION: $Id: strs2cells.m,v 1.1 2008/06/18 13:35:11 hewitson Exp $ | |
17 % | |
18 % HISTORY: 26-01-2007 M Hewitson | |
19 % Creation | |
20 % | |
21 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
22 | |
23 cell = []; | |
24 for j=1:nargin | |
25 cell = [cell cellstr(varargin{j})]; | |
26 end | |
27 | |
28 | |
29 | |
30 % END |