Home > Codi > cell2str.m

cell2str

PURPOSE ^

Convert a cell array of strings into an array of strings.

SYNOPSIS ^

function str = cell2str(c)

DESCRIPTION ^

 Convert a cell array of strings into an array of strings.
 CELL2STR by using strcat.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function str = cell2str(c)
0002 % Convert a cell array of strings into an array of strings.
0003 % CELL2STR by using strcat.
0004 if size(c,1) > 1 || size(c,1) > 1
0005     str = cellfun(@strcat , c);
0006 else
0007     str = c{1};
0008 end
0009 end

Generated on Wed 12-Sep-2012 13:03:54 by m2html © 2005