save matlab output to excel

9 次查看(过去 30 天)
maryam
maryam 2013-9-2
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

回答(1 个)

Azzi Abdelmalek
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 个评论
frankenberry
frankenberry 2020-3-26
Azzi, any idea how to output to excel's next row in appdesigner?

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by