Matlab array of char to string

If I had for example the char array in Matlab,

A(1,1) = 'A'
A(1,2) = 'P'
A(1,3) = 'R'
A(2,1) = 'M'
A(2,2) = 'A'
A(2,3) = 'Y'

How would I convert this to a string cell, B such that

B{1} = 'APR'
B{2} = 'MAY'

Many Thanks

Edit: A is a cell and using the function cellstr gives the error

Error using cellstr (line 23)
S must be 2-D. 


Use the following function:

>> B =  cellstr(A)

B = 


>> B{1}

ans =


Need Your Help

Download file size is unknown although file size is present in header

php javascript jquery download zip

I am doing the follwoing on a web page: A click on an element sends a set of data (attached to the element) to my server which will then generate a custom zip-file: