用于将字符串写入 excel 的 Matlab 命令
Matlab command for writing string into excel
我正在尝试通过以下命令使用 Matlab 在 excel 文件的单元格中写入字符串:-
xlswrite('E:\project\messidor\Testing image.xls','hello',1,'A3');
但问题是单词 hello 的每个字符都写在不同的单元格中。
在这个例子中,我希望单词 hello 写在单元格 A3 中,但是 h 写在 A3 中,e 写在'B3',l 在 'C3' 等等。
请建议正确的命令。
您必须在元胞数组中传递值 'hello'
,如下所示:
xlswrite('E:\project\messidor\Testing image.xls',{'hello'},1,'A3');
查看 documentation 了解更多信息。
我正在尝试通过以下命令使用 Matlab 在 excel 文件的单元格中写入字符串:-
xlswrite('E:\project\messidor\Testing image.xls','hello',1,'A3');
但问题是单词 hello 的每个字符都写在不同的单元格中。
在这个例子中,我希望单词 hello 写在单元格 A3 中,但是 h 写在 A3 中,e 写在'B3',l 在 'C3' 等等。
请建议正确的命令。
您必须在元胞数组中传递值 'hello'
,如下所示:
xlswrite('E:\project\messidor\Testing image.xls',{'hello'},1,'A3');
查看 documentation 了解更多信息。