readmatrix
READMATRIX Read matrix from file (MATLAB compat). By default returns a double array. Text and empty cells become NaN (column-type detection forces a homogeneous OutputType). Use 'OutputType','char' for a cell array of character vectors that keeps mixed text/numeric tokens, or readcell for typed mixed cells. See also: readcell, readtable, writematrix, detectImportOptions.