xlswrite substitute that writes to specific columns
2 次查看(过去 30 天)
显示 更早的评论
I would like to write a matrix to specific columns and rows of excel. xlswrite has this option but for compatibility issues I would want to find a substitue for it. Writetable or writematrix does not have this option (xlswrite(filename,A,xlRange)).
Any idea?
0 个评论
采纳的回答
Jeremy Hughes
2021-4-10
This syntax is equivalent to writematrix(A,filename,'Range',xlRange)
2 个评论
Jeremy Hughes
2021-4-11
Note the signatures are different.
The first input is the data, and the second input is the file name. Subsequent inputs need to be Name-Value pairs.
The correct calling syntax would be:
writematrix(B(:,2),fullFileNameofxy,'Sheet',sheet,'Range',xlRange)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!