use this syntax
if true
[num,txt,raw] = xlsread(___)
end
returns the text fields in cell array txt, and both numeric and text data in cell array raw, using any of the input arguments in the previous syntaxes.
refer this documentation link for example: https://in.mathworks.com/help/matlab/ref/xlsread.html#bthgbmn
Hope this helps.