[ad_1]
In MATLAB, [’12’ ’25’ ’34’ ‘466’ ’55’] is the same as a single string containing those numbers. That is to say:
['12' '25' '34' '466' '55']
ans =
12253446655
I need more context here for what you are trying to accomplish, but assuming you want to still be able to access each individual number as a string, a cell array is probably the best approach you can take:
A = [1 2 3]
num2cell(num2str(A))
(Of course, you’d still have to remove the stray spaces from the ans)
[ad_2]