Matlab: convert array of number to array of strings

matlab, numbers, string, type-conversion

Solution

An array of strings has to be a cell array. That said:

s = [12 25 34 466 55]
strtrim(cellstr(num2str(s'))')

Problem

How can I convert `[12 25 34 466 55]` to an array of strings `['12' '25' '34' '466' '55']`? The conversion functions I know convert that array to one string representing the entire array.

Original source