Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 XLSWRITE 将矩阵的值导出到 Excel 文件。假设我有一个 5*20 矩阵。我希望 Matlab 从第 2 行写入这个矩阵(因为我有一个 excel 模板,我不想在覆盖时更改它的第一行)。
我该怎么办?
xlswrite(xlsfilename,Matrix,sheet,xlRange)
这意味着您可以使用它:
xlswrite(xlsfilename,Matrix,sheet,"A2")
或者您也可以像这样精确指定范围:
xlswrite(xlsfilename,Matrix,sheet,"A2:E21")
见http://www.mathworks.com/help/matlab/ref/xlswrite.html