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

str = "Mercury"

%

chr = convertStringsToChars(str)

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

str = ["Venus","Earth","Mars"]

%

C = convertStringsToChars(str)

% Copyright 2012 The MathWorks, Inc.