save matlab output to excel

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

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 2 Sep 2013
Modifié(e) : Azzi Abdelmalek le 2 Sep 2013

0 votes

If M is your matrix
M=[1 9 7;2 2.5 3;3 45 23]
xlswrite('yourfile.xls',M)

3 commentaires

maryam
maryam le 2 Sep 2013
tnx,but my output generate in a loop and dispaly on screen,in fact i dont know how to generate this matrix M!
Azzi Abdelmalek
Azzi Abdelmalek le 2 Sep 2013
post your code
frankenberry
frankenberry le 26 Mar 2020
Azzi, any idea how to output to excel's next row in appdesigner?

Connectez-vous pour commenter.

Catégories

Question posée :

le 2 Sep 2013

Commenté :

le 26 Mar 2020

Community Treasure Hunt

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

Start Hunting!

Translated by