Home > m > helper > ltpda_strs2cells.m

ltpda_strs2cells

PURPOSE ^

LTPDA_STRS2CELLS convert a set of input strings to a cell array.

SYNOPSIS ^

function cell = ltpda_strs2cells(varargin)

DESCRIPTION ^

 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.html,v 1.14 2008/03/31 10:27:31 hewitson Exp $

 HISTORY: 26-01-2007 M Hewitson
             Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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.html,v 1.14 2008/03/31 10:27:31 hewitson 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

Generated on Mon 31-Mar-2008 12:20:24 by m2html © 2003