diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/+utils/@prog/strs2cells.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,30 @@
+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
\ No newline at end of file