Matlab: convert array of number to array of strings
An array of strings has to be a cell array. That said:
s = [12 25 34 466 55]
strtrim(cellstr(num2str(s'))')
Using arrayfun
together with num2str
would work:
>> A = [12 25 34 466 55]
A =
12 25 34 466 55
>> arrayfun(@num2str, A, 'UniformOutput', false)
ans =
'12' '25' '34' '466' '55'
Now after MATLAB 2016b, you can simply use
s = [12 25 34 466 55];
string(s)