MATLAB: Problem in string-number concatenation

concatenationnumbersstring

hello, I am trying to concatenate two matrices, A=['a1';'a2';'a3';'a4'] and Z=[190;64;4;5]. I am not able to do so.
Can someone help please. Thanks Annika

Best Answer

use cell array
A={'a1';'a2';'a3';'a4'};
Z=[190;64;4;5];
out = [A, num2cell(Z)];