用于将string写入excel的Matlab命令
我正在尝试使用Matlab通过以下命令在excel文件的单元格中编写一个string:
xlswrite('E:\ project \ messidor \ Testing image.xls','hello',1,'A3');
但问题是单词hello写在不同的单元格中的每个字符。
在这个例子中,我希望单词hello写在单元格A3中,但是h写在A3中,e写入“B3”,l写入“C3”,依此类推。
请build议正确的命令。
您必须在单元格数组中传递值'hello'
,如下所示:
xlswrite('E:\project\messidor\Testing image.xls',{'hello'},1,'A3');
查看文档以获取更多信息。