So it almost works; it has given us the first element of the cell array, but left it as a cell and not a string. With a slight mod, all is well. We just need the contents of the cell: ...
matlabrecipes.com