MATLAB: Cell2mat conversion

image analysis

Hi, I have one cell with 256X10 string values…If I want to convert it to matrix of size 256X10(using cell2mat) it contains full of strings….I can't access the matrix elements like matrix(4,5)… How to convert the cell of strings to matrix….Please post your ideas…

Best Answer

C ={['QRSTUVWXYZ'
'[\]^_`abcd'
'efghijklmn'
'opqrstuvwx']}
out = C{1}(4,5)
ADD
on Harjan's comments
C ={['QRSTUVWXYZ'
'[\]^_`abcd'
'efghijklmn'
'opqrstuvwx']};
C = repmat(C,4,4)
out = C{1,2}(1,1:10)