I have a string array:
array = ['123';'abc';'uvw'];
I want convert it to a cell array of string:
cellArr = {'123';'abc';'uvw'};
There are two ways in my idea: allocating a cell array then using a for loop or
cellArr = arrayfun(@(x) array(x,:),1:size(array,1),'UniformOutput',false)';
But I'm not sure if there is a build-in function do this more effective.