save matlab output to excel
9 次查看(过去 30 天)
显示 更早的评论
hi
i have some data in command window like:
n x y
1 9 7
2 2.5 3
3 45 23
.. .. ..
and i want to write them on excel file,in 3 different columns,could any body help me?
thanks in advance
0 个评论
回答(1 个)
Azzi Abdelmalek
2013-9-2
编辑:Azzi Abdelmalek
2013-9-2
If M is your matrix
M=[1 9 7;2 2.5 3;3 45 23]
xlswrite('yourfile.xls',M)
3 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!