Hi,
Does anyone know how to split a four character cell array string into 2(or better 4) separate strings? A= 'A5C9' %splitting into A1=A5 A2=C9
or even better something like A(1)=A A(2)= 5 A(3)= C A(4)= 9 so that I could use them to index a larger array?
For clarity this question was incorrectly posed, the problem was having a char within a cell, and needing to extract the char and index it. My bad for not realising the differences between strings and chars and should not have written {'…'}, much thanks to all who helped clarify.
Best regards
Steve
Best Answer