MATLAB: Cell array to char array

MATLABstringstext file

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)

Best Answer

char(a) and char(b)