MATLAB: Writing 1*5 char in one cell in excel

charconversionconvertexcelexportimporting excel dataxlsreadxlswrite

i have a problem- i have parameter in matlab called patients = 82×5 type char when each row is like 234t1(has both numbers and a letter)
i want to import it to excel so that each patient name will be in one cell and not 5..( a1 = 234t1, a2 = 234t2,…)
how can i do that?

Best Answer

xlswrite('test.xls',cellstr(patients))