I am just beginning to learn Matlab, so this question might be very basic:
I have a variable
a=[2.3 3.422 -6.121 9 4.55]
I want the values to be output to a .txt file like this:
2.3
3.422
-6.121
9
4.55
How can I do this?
fid = fopen('c:\\coeffs.txt','w'); //this opens the file
//now how to print 'a' to the file??