%% Convert Strings in Cell Array
% Create a cell array containing launch dates, spacecraft names, and planets visited. Some cells contain string arrays, and others do not.

C = {2004,"Messenger","Mercury"; ...
     1977,"Voyager 1",["Jupiter","Saturn"]; ...
     2006,"New Horizons","Pluto"}

%
% Convert the strings in C to character vectors.

C = convertContainedStringsToChars(C)

%
% Note that the function converts the string array ["Jupiter","Saturn"] to a cell array of character vectors, contained in cell C(2,3). To access the contents of the cell, use curly brace indexing.

C{2,3}

% Copyright 2018 The MathWorks, Inc.