【发布时间】:2009-09-21 21:09:42
【问题描述】:
我刚开始学习Matlab,所以这个问题可能很基础:
我有一个变量
a=[2.3 3.422 -6.121 9 4.55]
我希望将值输出到这样的 .txt 文件:
2.3
3.422
-6.121
9
4.55
我该怎么做?
fid = fopen('c:\\coeffs.txt','w'); //this opens the file
//now how to print 'a' to the file??
【问题讨论】:
标签: arrays matlab file-io text-files