%% Pad String Array with Spaces
% Create a string array. Starting in R2017a, you can create strings using double quotes.

str = ["Mercury","Gemini","Apollo";
       "Skylab","Skylab B","ISS"]

%
% Pad the elements of str with space characters.

newStr = pad(str)

% Copyright 2012 The MathWorks, Inc.