MATLAB保存char或字符串数组至txt

a = char('100_1', '100_2');

dlmwrite('D:\desktop\a.txt', a, 'delimiter', '', 'newline', 'pc');

>>>

100_1
100_2