Hello Sir! How to convert a cell array to char array? I want to read 2 strings from a .txt file and want them in char type. if I do as follow those are cell type. The file contains 2 strings in 1st line, separated by a single space. [a,b] = textread('inp.txt','%s%s',1)
Kshitij Singh answered .
2025-11-20
>> a = {'9a','abc'}
a =
'9a' 'abc'
>> char(a)
ans =
9a
abc