MATLAB: How to convert a character array A(N,1) to a string array B(N,12)

charchar to stringconversionstring

Example:
entry
A(1,1) = 'US5525411048'
I've tried every function I could find. Also fn string is being phased out and fn compose doesn't exist. Thanks
isin1 = string(rawb(:,6));
isin1 = [rawb(:,6)];
isin2= cellstr(rawb(:,6));
isinc = strrep(isin_char,' ',''',''');
isinc = strfind(rawb(:,6),',');
isinc = str(rawb(:,6),3:11);
isinc12 = compose('%12s',rawb(:,6)); % no compose function
isinc12 = reshape(rawb(:,6),[size(rawb(:,6),1),12])

Best Answer

A = "US5525411048";
B = char(A);