%% Convert Character Arrays to String Arrays
% Create a character vector and convert it to a string scalar.

chr = 'Mercury'

%

str = convertCharsToStrings(chr)

%
% Convert a cell array of character vectors to a string array.

C = {'Venus','Earth','Mars'}

%

str = convertCharsToStrings(C)

% Copyright 2012 The MathWorks, Inc.