%% Pad String Array with Different Character
% Create a string array representing numbers and pad the strings with leading zeroes instead of space characters.

A = [69.45 31.71 95.36 3.44 7.82];
A = A';
str = string(A)

%

newStr = pad(str,7,'left','0')

% Copyright 2012 The MathWorks, Inc.