Comment imprimer un tableau à une .fichier txt dans Matlab?

Je suis juste de commencer à apprendre Matlab, de sorte que cette question pourrait être très basique:

J'ai une variable

a=[2.3 3.422 -6.121 9 4.55]

Je veux que les valeurs de sortie à un .txt fichier comme ceci:

2.3
3.422
-6.121
9
4.55

Comment puis-je faire cela?

fid = fopen('c:\\coeffs.txt','w'); //this opens the file
//now how to print 'a' to the file??

OriginalL'auteur Lazer | 2009-09-21