MATLAB: Array of ints to cell array of strings

cell array

I was wondering what is the best way to convert an array of integers to a cell array of strings?
Thanks.

Best Answer

a=magic(5)
b=mat2cell(a,ones(size(a,1),1),ones(size(a,2),1))
c=cellfun(@num2str,b,'uni',false)