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

A = {'Mercury','Gemini','Apollo';...
     'Skylab','Skylab B','ISS'}

%

str = string(A)

%
% To access the second element in the first row of str, index using smooth parentheses. You can access strings in a string array with matrix indexing, just as you would access elements of a numeric array.

str(1,2)

%
% Access the third column.

str(:,3)

% Copyright 2012 The MathWorks, Inc.