Writing a cell (matlab) to a CSV file
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I save this cell data = cell([3 2]); data{1,1} = 'Bla'; data{2,1} = 'Bla1'; data{3,1} = 'Bla2'; data{1,2} = '2'; data{2,2} = '3'; data{3,2} = '1' to a csv file? I tried dlmwrite('C:\Users\Ro\Desktop\Mestrado\Resultados\Tabelas\VaR_tab.csv',data,'delimiter',';') but it give this error message: Error using dlmwrite (line 118) The input cell array cannot be converted to a matrix. 回答1: I just tried this, and it worked: filename = 'test'; cell2csv(filename,data) with cell2csv available as function cell2csv(filename,cellArray,delimiter) %