LTPDA_STRS2CELLS convert a set of input strings to a cell array. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: LTPDA_STRS2CELLS convert a set of input strings to a cell array. CALL: cell = ltpda_strs2cells(str1, str2, ...) INPUTS: str1 - string str2 - string ... OUTPUTS: cell - cell array of the input strings VERSION: $Id: ltpda_strs2cells.m,v 1.5 2007/07/13 12:17:39 ingo Exp $ HISTORY: 26-01-2007 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function cell = ltpda_strs2cells(varargin) 0002 % LTPDA_STRS2CELLS convert a set of input strings to a cell array. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: LTPDA_STRS2CELLS convert a set of input strings to a cell array. 0007 % 0008 % CALL: cell = ltpda_strs2cells(str1, str2, ...) 0009 % 0010 % INPUTS: str1 - string 0011 % str2 - string 0012 % ... 0013 % 0014 % OUTPUTS: cell - cell array of the input strings 0015 % 0016 % VERSION: $Id: ltpda_strs2cells.m,v 1.5 2007/07/13 12:17:39 ingo Exp $ 0017 % 0018 % HISTORY: 26-01-2007 M Hewitson 0019 % Creation 0020 % 0021 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0022 0023 cell = []; 0024 for j=1:nargin 0025 0026 cell = [cell cellstr(varargin{j})]; 0027 0028 end 0029 0030 0031 0032 % END